#include<iostream> int main() { using namespace std; char ch; int count = 0; cin.get(ch); while(cin.fail() == false){ cout << ch; ++count; cin.get(ch); } cout << endl << count << " characters read\n"; return 0; }
Sample 5.18:textin3.cpp
最新推荐文章于 2022-04-20 14:16:50 发布