1,443 Posted Topics

Member Avatar for phorce

I cannot figure out what it is you are doing here. Can you rephrase the requirements?

Member Avatar for Munnazz
0
127
Member Avatar for fmasroor
Member Avatar for Schol-R-LEA
0
119
Member Avatar for cummings15

Something tells me listLength is going below zero before it is used. Can you check the value in the debugger right before 82?

Member Avatar for cummings15
0
305
Member Avatar for fmasroor
Member Avatar for Moschops
0
535
Member Avatar for Golffor1
Member Avatar for fmasroor

It sounds like you might be using the Unicode character set and need to change to MultiByte (which will give you less problems with mixed-mode compilation). With Visual Studio, you can create a console app, a CLR app, an MFC app or mix and match. Are you still having problems …

Member Avatar for Schol-R-LEA
0
334
Member Avatar for jdm

You would need to check the nybbles for the value of the space char...20h for example. If you put each byte of the double word in a register, it would be easier to detect.

Member Avatar for thines01
0
127
Member Avatar for jainpraveen75
Member Avatar for Sadun89
0
73
Member Avatar for Malaoshi

One thing I would suggest is to keep your Dictionary processing completely separate from your UI. The loading of the dictionary can be triggered from the form, but should not be [I]part[/I] of the form. Can these be stored in a file or database? If so, you can keep control …

Member Avatar for thines01
0
644
Member Avatar for diGGity

Well, if this is to be a permanent WCF application, you will need to determine how you're hosting it. Is it to be self-hosted or attached to IIS?

Member Avatar for diGGity
0
240
Member Avatar for TrueCoding
Member Avatar for zemzela

[QUOTE=zemzela;1705944]Print all small Cyrillic letters from A to Z with spaces between letters: A B C D ... Jay Z using the instruction LOOP. I need help to solve this task, if someone know please help me...[/QUOTE] Do you have the Cyrillic font installed?

Member Avatar for thines01
0
36
Member Avatar for vrs1155

You should create at least 3 CRecordsets -- one for table1, one for table2 and one for the joined table1+table2 (based on primary and foreign keys). That way, you can use (insert, update, delete, select) for each table individually or you can just read the combined/joined table.

Member Avatar for thines01
0
591
Member Avatar for KarpedByC#

Can you use Linq? If not, use the GetMaxFromArray and GetMinFromArray methods. [These are just options] [CODE]using System; using System.Linq; namespace DW_397808 { class Program { private static int GetMaxFromArray(int[] ia) { int iMax = ia[0]; foreach(int i in ia) { if(i > iMax) iMax = i; } return iMax; …

Member Avatar for thines01
0
180
Member Avatar for sahiti1988

Since there is no mention of ["what's NOT allowed"], I think a final method for isDoubleSorted could look like this (in C#) [CODE] private static bool isDoubleSorted(int[] a) { if (!isSingleSorted(a, isOdd)) return false; return isSingleSorted(a, isEven); } [/CODE]

Member Avatar for Narue
0
214
Member Avatar for Labdabeta

I personally have tried [CODE] Runtime.getRuntime().exec("command.com /c cls"); System.out.print("\f"); System.out.print("\033[2J\033[H"); [/CODE] ALL of which did not work on Windows XP. Also, check out the answers here: [url]http://www.daniweb.com/software-development/java/threads/381318[/url]

Member Avatar for thines01
0
115
Member Avatar for jonspeidel

The if statements still need to compare to s3: [CODE] if((s3=="Y" || s3=="y")) { ... //etc } [/CODE]

Member Avatar for WaltP
0
253
Member Avatar for coolsport04

This will really depend on what you're trying to do. A hashmap will be beneficial when you already know what things belong together (key, value pairs). Will the program need to unscramble (or scramble) the words?

Member Avatar for thines01
0
281
Member Avatar for Srcee

You posted this in the C# forum. I'm sure a moderator will soon move it to the Pascal/Delphi forum: [url]http://www.daniweb.com/software-development/pascal-and-delphi/124[/url]

Member Avatar for Srcee
0
98
Member Avatar for rahulroshan
Member Avatar for wmurrow

If you don't re-check AND re-set the value of userName inside the while, it will be infinite. [CODE] while (userName != "0") { // <-Needs to ask for userName HERE CheckPassword(password); } [/CODE]

Member Avatar for wmurrow
0
4K
Member Avatar for b-one

When you say "print", do you mean to the screen or to a PRINTER? When you say the tabs disappeared, do you mean the words now have NO delimiter or did something else happen?

Member Avatar for b-one
0
211
Member Avatar for dsoto

Duplicate? [url]http://www.daniweb.com/software-development/java/threads/395756[/url]

Member Avatar for dsoto
0
173
Member Avatar for minonfbf
Member Avatar for Thug_life

1) What error are you getting? 2) Can you convert the inner portions of the case statements to function calls instead? Grouping your code into functions will probably reveal the flaw or oversight.

Member Avatar for thines01
0
182
Member Avatar for Kayy

Are you using: [CODE]using System.Collections.Generic;[/CODE] Try this: [CODE] using System.Collections.Generic; namespace DW_397605 { public class Commodity { public string strName { get; set; } public double dblValue { get; set; } public Commodity() { strName = ""; dblValue = 0.0; } public Commodity(string strName, double dblValue) { this.strName = strName; …

Member Avatar for Kayy
0
169
Member Avatar for dmtYork921

1) You are calling "Call WriteString", but there is nothing called WriteString except a line that is commented-out. 2) ReadInt (same) 3) You have an End Main, but no start or begin Main

Member Avatar for thines01
0
407
Member Avatar for javanewb

How about this? [CODE] // GuessTheNumberTest.java //Written by Sean Kelley for IS109-8b //Week 3 homework //Test the game GuessTheNumber import java.util.Scanner;//uses Scanner public class GuessTheNumberTest { public static void main(String[] args){ Scanner input = new Scanner(System.in);//initializes Scanner do {//begin while to play again (new GuessTheNumber()).play();//call method play System.out.println("Play again? 1 …

Member Avatar for frank33
0
235
Member Avatar for ppatryk

Yup [CODE]StreamWriter fileOut = new StreamWriter("file.txt"); fileOut.WriteLine("stuff goes here"); fileOut.Close();[/CODE] then... [CODE] string strData = ""; StreamReader fileIn = new StreamReader("file.txt"); while(!fileIn.EndOfStream) { strData = fileIn.ReadLine(); } fileIn.Close(); [/CODE]

Member Avatar for zachattack05
0
159
Member Avatar for newbie14

On way would be to use sprintf to format your insert/update string. The parameters will be the elements of the struct.

Member Avatar for newbie14
0
308
Member Avatar for squ200

[url]http://www.cplusplus.com/reference/algorithm/max/[/url] Well, first you would find the min, then find the max and subtract the min from the max, right?

Member Avatar for Moschops
0
215
Member Avatar for otreblag

The double-scan technique would work well. It might be better to do this as a command-line app -- that way, the user can redirect the output easily and manually where necessary.

Member Avatar for otreblag
0
132
Member Avatar for slim1_1

First, don't attempt to define classes inside Main. Second, you have some unreachable code. VS should underline these for you. [Technique] Remove all printing statements from your class. It might not always be used with a Console app. Determine the need to print and the output mechanism outside the class.

Member Avatar for thines01
0
90
Member Avatar for cacofonix

If you used a text editor to create the file, make sure it saves in Unix format. If your code created the file, use \n for linefeeds instead of \r\n. If you are sending the file via FTP, make sure it transfers in text/ASCII mode.

Member Avatar for thines01
0
181
Member Avatar for compulove

What type of control is your browse? If it is of type "File" (in HTML), you will get a dialog box [CODE] <body> <form id="form1" runat="server"> <div> <input id="fileIn" type="file" name="fileIn" runat="server"/> </div> </form> </body> [/CODE] ...but are you trying to reference on the on the server or the client …

Member Avatar for thines01
0
207
Member Avatar for modesto916

Check this page: [url]http://www.learn-programming.za.net/programming_pascal_learn11.html[/url] You will need to "Seek" to a location in the file to overwite a record.

Member Avatar for thines01
0
504
Member Avatar for chuyauchi
Member Avatar for hardingC
Member Avatar for bawbawbiscuit
Member Avatar for coolbeanbob
Member Avatar for menaka4u
Member Avatar for naveedqadri

Is this the same? : [url]http://www.daniweb.com/software-development/csharp/threads/396941[/url]

Member Avatar for thines01
0
446
Member Avatar for robinpurbia
Member Avatar for mc3330418

Start by removing the word void from lines 35 and 36. Re-compile and work on the first error first.

Member Avatar for mc3330418
0
209
Member Avatar for tformed

Yes, insert 0ah where you want the line to break. [CODE] org 0100h mov dx, msg mov ah, 09h int 21h mov ah, 4ch int 21h msg: db 'Hello World!',0ah,0ah,'This is my',0ah,'first program',0ah,'using Assembly$' [/CODE]

Member Avatar for tformed
0
13K
Member Avatar for phorce
Member Avatar for thines01
0
97
Member Avatar for jackly94
Member Avatar for babymel2010

Do you currently know C#? If you do, I recommend you run a web service on your server that gives the filename for the client to download over FTP. This would be a solution that would not be too complex.

Member Avatar for thines01
0
95
Member Avatar for SeasideP

Just a quick glance at 160 shows you're rebuilding the string named "Length" every time. Is that correct? ...and at 95, you're displaying and adding simultaneously. Is [I]that[/I] correct?

Member Avatar for SeasideP
0
89
Member Avatar for phorce

Try something like this: [CODE] #include <fstream> #include <iostream> using namespace std; int main(void) { ifstream fileIn("c:/science/TomDigs.txt"); char strData[128] = {0}; string words[500]; int intCount = 0; while(!fileIn.eof() && intCount < 500) { fileIn >> strData; words[intCount++] = strData; } fileIn.close(); return 0; } [/CODE] But I have to ask: …

Member Avatar for thines01
0
135

The End.