/*★ stream3.CPP 標準入力→標準出力 のサンプルプログラム 前田 稔 ★*/ #include using namespace std; int main(void) { char c; while(cin.get(c)) //Ctrl+Z で入力ストリームが終了 cout.put(c); //cout << c; でも同じ return(0); }