Another question: how can I use cin with strings?
Code:
string data;
cin>>data;   //gives an error
WP