Search Results

Showing results 1 to 12 of 12
Search took 0.01 seconds.
Search: Posts Made By: dabu
Forum: C++ Nov 3rd, 2007
Replies: 1
Views: 2,684
Posted By dabu
I tried following this code for my program, but counting the consonants and vowels are not doing what I want them to. Is this the correct format to use?


#include <iostream>
#include <string>...
Forum: C++ Oct 28th, 2007
Replies: 12
Views: 1,181
Posted By dabu
Sorry Walt, I should have said that this statement was not clear to me before, but after re-reading it I understand and now my program works the way I want.
Forum: C++ Oct 28th, 2007
Replies: 12
Views: 1,181
Posted By dabu
I tried getting rid of a loop and did this:


#include <iostream>
#include <string>
using namespace std;

int main()
{
double withdraw, deposit, balance, newBalance, amount;
Forum: C++ Oct 28th, 2007
Replies: 12
Views: 1,181
Posted By dabu
Okay, I changed it, adding another do-while loop, but now the continue only goes through once. If the user enters an invalid answer, it does what I want it to, but when i enter another invalid...
Forum: C++ Oct 28th, 2007
Replies: 12
Views: 1,181
Posted By dabu
I slept on it and still cant figure it out. Should I have another loop before my if statement? If I do, I don't know what the condition would be. Also for one of the if statements (which i...
Forum: C++ Oct 28th, 2007
Replies: 12
Views: 1,181
Posted By dabu
Hmm, thats weird, my book tells me that it jumps back to the beginning of the loop. Well, if that doesn't work, how do I go about making the statement in my else to return to the top?
Forum: C++ Oct 28th, 2007
Replies: 12
Views: 1,181
Posted By dabu
Part of my code i pasted was wrong, either way, it doesnt effect the whole thing
Forum: C++ Oct 28th, 2007
Replies: 12
Views: 1,181
Posted By dabu
Well for some reason it doesn't, it just breaks the loop and I don't understand why.
Forum: C++ Oct 28th, 2007
Replies: 12
Views: 1,181
Posted By dabu
Shouldn't continue in my else statement return me to the top do...while loop and print the following again?


#include <iostream>
#include <string>
using namespace std;

int main()
{
...
Forum: C++ Oct 28th, 2007
Replies: 2
Views: 790
Posted By dabu
Can else have more than one statement?


if (control)
<statement>

else if (control)
<statement>

else
Forum: C++ Oct 27th, 2007
Replies: 4
Views: 977
Posted By dabu
I'm still confused.
First of all, for a beginner, are the ways I set up my loops okay?.
Second, how and where do I check to see if the input is valid? I don't know what you mean about "input...
Forum: C++ Oct 27th, 2007
Replies: 4
Views: 977
Posted By dabu
Hello. I wrote a program which works fine, all i need is to add one more thing. When I ask the user to input an answer (withdraw, balance...) I don't know how to prompt them if they enter...
Showing results 1 to 12 of 12

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC