You are viewing a single comment's thread. Return to all comments →
int main() { string str; getline(cin,str);
for(int i=0;i<str.length();i++) { if(str[i]==',') { cout<<"\n"; }else { cout<<str[i]; }
} return 0; }
//I hope this is helpful for beginners:)
Seems like cookies are disabled on this browser, please enable them to open this website
StringStream
You are viewing a single comment's thread. Return to all comments →
int main() { string str; getline(cin,str);
} return 0; }
//I hope this is helpful for beginners:)