复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24/* *Copyright (c)2015,烟台大学计算机与控制工程学院 *All rights reserved. *文件名称:score.cpp *作 者:惠睿 *完成日期:2015年6月10日 *版 本 号:v1.0 * *问题描述:阅读程序,写出程序的运行结果并理解。 *程序输入:无输入。 *程序输出:输出调用函数后的值。 */ #include<iostream> #include<cstdio> using namespace std; int main( ) { int c; cout<<"enter a sentence:"<<endl; while((c=cin.get())!=EOF) cout.put(c); return 0; }
运行结果:
最后
以上就是老实皮皮虾最近收集整理的关于第14周程序阅读 例6.1的全部内容,更多相关第14周程序阅读内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复