You will have to post the code you started because my eyesight isn't good enough to see your monitor.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Yeah, we aren't writing programs for you, you first have to show some effort, post the code you already have ...
And if you don't know where to start then do the following: break the problem down into little parts which are simple to solve, then you put everything together and the big problem is solved ...
(this process is also known as abstraction)
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
1) There is no function
#include <iostream>
using namespace std;
int main()
{
// your code here
}
2) Line 9 is an incomplete if statement. if( <some condition goes here> ) { . If you don't want anif statement then just delete line 9.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Hasn't there to be a 'while' after the '}' on line 33 ?
I don't know any C++ statement with only 'do', it think you meant the 'do while' ...
e.g.:
do
{
/* Your code here */
} while ( <condition> )
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
need help with a c++ problem
I think that was logic, but what's 'a' problem, we have to know what problem ...
In this case he has problems with some existing code ...
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
need help with ac++ problem
We are not mind readers!
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343