Bades,I want to parse through the string .The below code is compliing but i am not getting the desired output.

[code
main()
{
string str;

cin>>str;

int size=str.size();