why dont u use a
switch(option)
case 1:
Numbers of year...
break;
case 2:
and keep going
much easier to debug
Blackiey
Junior Poster in Training
61 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
When you make a post and it looks bad, click the EDIT button to the left and fix it!
WaltP
Posting Sage w/ dash of thyme
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
You claim to be using a DO-WHILE loop. I see the DO. What's missing?
WaltP
Posting Sage w/ dash of thyme
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
Each do loop needs a while condition, such as:
bool done = false;
do
{
// Stuff to do
if (no_more_stuff_to_do)
{
done = true;
}
}
while (!done);
// Or
while (!done)
{
// Stuff to do
if (no_more_stuff_to_do)
{
done = true;
}
}
rubberman
Posting Virtuoso
1,564 posts since Mar 2010
Reputation Points: 277
Solved Threads: 179