Search Results

Showing results 1 to 13 of 13
Search took 0.01 seconds.
Search: Posts Made By: cout<<"alias" ; Forum: C++ and child forums
Forum: C++ Dec 1st, 2008
Replies: 16
Views: 822
Posted By cout<<"alias"
I was doing a similair problem, and with some help from people on here found that using a do-while loop with a switch instead of four if statements worked best. Check out the last page for some...
Forum: C++ Nov 26th, 2008
Replies: 19
Views: 1,109
Posted By cout<<"alias"
Yep, thats what did it right there. Didnt even think about using a 'do-while' loop. Appreciate that, was becoming a headache.
Forum: C++ Nov 26th, 2008
Replies: 19
Views: 1,109
Posted By cout<<"alias"
Alright this is what i put together


switch ( z )
{
case 1: //add
sum = add(x,y);
cout << "Your sum is: " << sum << endl;
break;
case 2: // Subtract
Forum: C++ Nov 26th, 2008
Replies: 19
Views: 1,109
Posted By cout<<"alias"
Alright, the loop/function complied correctly thanks to everyones help. I wanted to see if anyone might have some ideas/feeback on this idea though. The original program was simply a while loop that...
Forum: C++ Nov 25th, 2008
Replies: 19
Views: 1,109
Posted By cout<<"alias"
lol, ok i see what your talking about now. Forgot endl after output of z. Well good times, this really helped with my understanding of functions and loops. Took a few tries, but hopefully this will...
Forum: C++ Nov 25th, 2008
Replies: 19
Views: 1,109
Posted By cout<<"alias"
I appreciate all the help, as a final thought do you mind i ask what /n does for the quotations? Ill look it up when i get home, but if noone minds hooking me up with an explanation to it i would...
Forum: C++ Nov 25th, 2008
Replies: 19
Views: 1,109
Posted By cout<<"alias"
Alright, that makes sense. Here is what i have so far, when i get home going to try and compile it and see what happens. Thanks for all the input so far guys, i appreciate your time on this.

...
Forum: C++ Nov 25th, 2008
Replies: 19
Views: 1,109
Posted By cout<<"alias"
Will the if statement allow the user to use the program over and over until they enter 0? This was my main objective with the program, that and incorporating functions. lol, and thank you its a rough...
Forum: C++ Nov 25th, 2008
Replies: 19
Views: 1,109
Posted By cout<<"alias"
Alright, this will be the last post until i can get to a compiler tonight. I believe i fixed most of what you mentioned, and i do appreciate the feedback. I know the last source post was kind of...
Forum: C++ Nov 25th, 2008
Replies: 19
Views: 1,109
Posted By cout<<"alias"
Alright, i appreciate the advice here. I do need to get into the books more, even with reading i've had some trouble understanding this though and trail and error seems to be the only way to figure...
Forum: C++ Nov 25th, 2008
Replies: 19
Views: 1,109
Posted By cout<<"alias"
Hi there, been working on a small program that will loop a function which adds two integers until the user enters 00, but can't seem to work out the finer details. A little newer to C++, don't need...
Forum: C++ Nov 24th, 2008
Replies: 3
Views: 448
Posted By cout<<"alias"
wow, that was a pretty simple fix. I wasnt sure if i needed to include the brackets after the "if" statement, that does help alot. Thanks again guys, really cleared that up for me.
Forum: C++ Nov 23rd, 2008
Replies: 3
Views: 448
Posted By cout<<"alias"
Hi there, been having some trouble with a simple program i am trying to write. I'm fairly new to C++, and can't seem to fix the errors im getting. Any ideas or hints would be much appreciated.
...
Showing results 1 to 13 of 13

 


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

©2003 - 2009 DaniWeb® LLC