int readnumbers, what about readwords?

I'm working on a AI project and am looking for a code that can read the user text.. just like int readnumber but with words :p
1
2
3
4
5
6
string readword()
{
string a;
cin>>a;
return a;
}
Topic archived. No new replies allowed.