- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 3
- Upvoting Members
- 5
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
8 Posted Topics
Just swap every variable below the strlen() functions. l1 <=> l2 str1 <=> str2 Also: You should declare main as returning an int, not void. And you should NOT use gets(), use fgets() instead. Do some reading on why, it's quite interesting and important to know.
You're not initializing total. It's going to be garbage unless you set it to the identity for addition before you start adding to it. Also I'm not sure your logic is sound at lines 18 and 19. Wouldn't something like this make more sense? [CODE] if (distance < 15) total …
Not sure what the problem is here, seems to run fine for me.. [CODE] vance@Vance-ubuntu:~/programming/stuf$ ./a.out Enter words (q to quit): This is a test of your first-letter type counting program q 3 words beginning with vowels 8 words beginning with consontants 0 others [/CODE] You are counting the control …
Greetings all DaniWeb people, long time no see. I have a (hopefully) easy question. Let's jump into the code. My test harness: [CODE] cout << "--------------------------------------------------------" << endl; cout << "Begin Copy Constructor Testing" << endl; cout << "--------------------------------------------------------" << endl << endl; dlSL = new DLSortedList(); for (int i …
[QUOTE=lamoracke;1130057]i have ask my teacher if i should use this way he said because i have not look at this part of see i would fail due i can shw learning out comes but thank guys i seen a jsp gram that had like if state and things liek that …
Hello all, Here I intend to reverse a line of text ending in a newline, but only the individual words will be reversed, not every character. For example, "This is just a test." would output ".test a just is This". The code as stands prints a space for every character …
What compiler and options are you using? I know that gcc will output assembly code if you use the -S switch. Perhaps you just need to remove that from your compile step?
[QUOTE=needhelpe;1126255]i already did a program that encrypts letters by skipping 1 or 2. but now i need to make a program that encrypts a word, using substitution. I already try several things but i can't get it work. can anybody help me? for example the normal key is a,b,c,d,e and …
The End.
holocron