#include <iostream> using namespace std; int main(){ char ch; while(cin>>ch) { cout<<"This is the end!"<<endl; if(ch=='1') break; } return 0; }
Windows 按Ctrl-Z Linux 按Ctrl-D
windows 下 ctrl + z
按ctrl + z 就可退出
64,642
社区成员
250,580
社区内容
加载中
试试用AI创作助手写篇文章吧