📄 ch01.1.5.c
字号:
// #include <iostream>
#include <iostream.h>
#include <string>
/**
**
a.out < input_file
word read is: Shyly,
word read is: she
word read is: asks,
word read is: "I
word read is: mean,
word read is: Daddy,
word read is: is
word read is: there?"
ok: no more words to read: bye!
**
**/
int main()
{
string word;
while ( cin >> word )
cout << "word read is: " << word << '\n';
cout << "ok: no more words to read: bye!\n";
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -