第十六周实践项目之阅读程序————4
来源:互联网 发布:国内域名和国际域名 编辑:程序博客网 时间:2024/05/22 10:48
问题及代码:
/*copyright(c)2016.烟台大学计算机学院 * All rights reserved, * 文件名称:text.Cpp * 作者:吴敬超 * 完成日期:2016年6月13日 * 版本号:codeblock * * 问题描述: * 输入描述: * 程序输出: 输出结果 */ #include<iostream> #include<fstream> #include<cstdlib> using namespace std; int main() { int a; ofstream outfile("f1.dat",ios::out); if(!outfile) { cerr<<"open error!"<<endl; exit(1); } cin>>a; outfile<<a<<endl; outfile.close(); return 0; }
查看文件:
0 0
- 第十六周实践项目之阅读程序————4
- 15第十六周实践项目——程序阅读
- 第十六周实践项目之阅读程序————1
- 第十六周实践项目之阅读程序————2
- 第十六周实践项目之阅读程序————3
- 第十六周实践项目之阅读程序————5
- 第十六周实践项目之阅读程序————6
- 第十六周实践项目之阅读程序————7
- 第十六周实践项目之阅读程序————8
- 第十六周实践项目之阅读程序————9
- 第十六周项目1—阅读程序(1)
- 第十六周项目1—阅读程序(2)
- 第十六周项目1—阅读程序(3)
- 第十六周项目2—阅读程序(1)
- 第十六周项目2—阅读程序(3)
- 第十六周项目3—阅读程序(1)
- 第十六周项目3—阅读程序(2)
- 第十六周项目3—阅读程序(3)
- STL的运用—数列
- 编写Android Studio插件
- 20个常用表达式
- Android官方开发文档Training系列课程中文版:网络操作之XML解析
- 产品设计-产品团队的建设与培养
- 第十六周实践项目之阅读程序————4
- Salesforce 发送业务员未提交任务短信提醒经理
- scrollview与viewpager结合的依赖工程
- 用SpannableString打造绚丽多彩的文本显示效果
- httpClient的Get和Post请求
- [财务]什么是应付款转销
- java 加密
- Java加密保护
- eclipse 查询结果 在新窗口中打开