|
//i want to say ask for user input until he inputs, then carry on.
//code;
char direct='k';
do {
cin>>direct;
cout<<"enter direction\n";
} while
( direct=='k' );
THis is wrong, please help
|
|
|
#include <iostream>
using namespace std;
int main()
{
char direct='k';
do {
cout<<"enter direction\n";
cin>>direct;
} while
( direct=='k' );
}
i was not clear what you trying to do.try this if you are not happy let me know.
thanks
|
|
|
|
|
|
|
// |