字符串按行读入

用getline(cin,s)按行读入 //s为string对象   ,然后用 istringstream is(s),while(is>>ch)

参考https://blog.csdn.net/Dilly__dally/article/details/81461932

猜你喜欢

转载自blog.csdn.net/Dilly__dally/article/details/82261460