第十六周阅读程序-4
来源:互联网 发布:linux下编写python 编辑:程序博客网 时间:2024/06/05 00:46
/*copyright(c)2016.烟台大学计算机学院 * All rights reserved, * 文件名称:text.Cpp * 作者:刘涛 * 完成日期:2016年6月10日 * 版本号:vc++6.0 * 问题描述:阅读程序 */#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
- 第十六周阅读程序4
- 第十六周程序阅读(4)
- 第十六周 阅读程序
- 第十六周阅读程序
- 第十六周阅读程序
- 第十六周 阅读程序
- 第十六周 程序阅读
- 第十六周 程序阅读
- 第十六周--阅读程序
- 第十六周--阅读程序
- 第十六周--阅读程序
- 第十六周 阅读程序
- 第十六周--阅读程序
- 第十六周--阅读程序
- 第十六周--阅读程序
- 第十六周--阅读程序
- 第十六周--阅读程序
- CSS学习1(结构和层叠)
- C strcpy & memcpy & malloc & free
- Android应用组件
- 什么是Apple Pay?
- SQL Server:服务器角色
- 第十六周阅读程序-4
- The error occurred while setting parameters
- codeblocks中创建和调用静态链接库(lib)
- 如何测试两台电脑是否可以连接
- java中list、set和map 的区别
- SpringMVC基于Controller的注解
- 指针详解与内存映像图(一)
- 给数组写了几个高阶函数扩展 让数组拥有List一样的功能
- Spring Mvc那点事---(15)Spring Mvc之mybatis条件表达式