字符串结束标志 从键盘给EOF结束标志,结束程序。 int c;do{ printf("请输入文档的结尾标志");} while ((c = getchar()) != EOF);cout<<"已得到文档结束标志"<<endl;