1062 Text Reverse

http://acm.hdu.edu.cn/showproblem.php?pid=1062 思路: 最主要的是通过getline函数存取字符串。 如何读取单个单词,并且反向输出? 用\n作为单个单词的判定。 扩展: getline函数的用法,详解 int main() { string line; while(getline(cin,line)) cout<<line<<
相关文章
相关标签/搜索