here is the code.
the problem is if you want to type in another word the input varible does not change, neither does t he another varible. what should I do?PHP Code:
#include <iostream>
#include <string>
using namespace std;
int main()
{
string input, again;
START: cout << " type a word... " << endl ;
cin >> input;
cout << "you typed " << input << output << endl ;
Sleep(5000);
cout << endl ;
cout << endl ;
cout << endl ;
cout << "would you like to exit or type another word? (another/exit)" << endl ;
cout << endl ;
cin >> again;
if(again == "another")
goto START;
else if(again == "exit")
goto END;
END: cin.get();
return 0;
}