cin

      以前老用getline来读取,今天才碰到了直接
            cin >> msg;
      来读取,发现原来不仅'\n','\t'和空格都会打断cin的读入。简单问题,只是记录一下。

相关文章

分类

留言:

关于文章

This page contains a single entry by DongHao published on 09 23, 2008 6:07 PM.

牛奶啊牛奶 was the previous entry in this blog.

指向bool变量的指针 is the next entry in this blog.

Find recent content on the main index or look in the 存档 to find all content.