![]() |
|
#1
|
|||
|
|||
Do..While LoopsNew Project... need help please:
Attached is the instructions. Here is what I have so far and having trouble: CPP / C++ / C Code:
|
|||
|
#2
|
|||
|
|||
Re: Do..While LoopsLooks like you started out ok and then got tired.
This is YOUR homework but without giving too much away here are a couple of things: Just get this out of your way (delete it) CPP / C++ / C Code:
CPP / C++ / C Code:
Also take note of the "continue;" which jumps to the top of the current looping structure. very handy. Another suggestion would be to use a do{}while() around the "n" input like you did for the "operation" input. You will find that you will also need to do something in the event someone would input: Code:
|
|
#3
|
|||
|
|||
Re: Do..While LoopsThank you so much!
|
|
#4
|
|||
|
|||
Re: Do..While LoopsI have another question,
I tried this whole program in a different way, and it seems to work great, but the only problem is "+" doesn't work, but all other operations do, Any ideas? CPP / C++ / C Code:
|
|
#5
|
|||
|
|||
Re: Do..While LoopsAny ideas about the above Program?
|
|
#6
|
|||
|
|||
Re: Do..While LoopsActually it works great. Please delete my last program post. Apparently some other students are copying my work.
Thanks |
|
#7
|
|||
|
|||
Re: Do..While LoopsI think the question was to ask the user to input two integers though not explicitly stated that way in the statement.
|
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| combine 2 struc loops into 1 loop | roy918 | C++ Forum | 4 | 01-Mar-2007 08:28 |
| Having Problems with Loops | cristale10 | C++ Forum | 2 | 02-Oct-2006 14:58 |
| nested loops.. need some help.. | PeterPan | Java Forum | 1 | 21-Mar-2006 21:40 |
| Help with nested for loops...please. sorry newbie | keperry | C++ Forum | 14 | 16-Oct-2004 11:25 |
| Help using nested for loops | dontcare | C++ Forum | 1 | 03-Oct-2004 12:33 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The