第16周阅读程序(3)
来源:互联网 发布:js获取地理位置 编辑:程序博客网 时间:2024/05/07 01:44
代码:
/**Copyright (c) 2016, 烟台大学计算机与控制工程学院*All rights reserved.*文件名称:ycy.cpp;*作 者:岳成艳 2016年6月14号;*版 本 号:vc++6.0;**问题描述:。*程序输入:略;*程序输出:略;*/#include <iostream>#include <fstream>#include<cstdlib>using namespace std;int main(){ int a; ofstream outfile("f2.dat",ios::out|ios::binary); if(!outfile) { cerr<<"open error!"<<endl; exit(1); } cin>>a; outfile.write((char*)&a,sizeof(int)); outfile.close(); return 0;}
运行测试:
0 0
- 第16周阅读程序(3)
- 第16周-阅读程序(3)
- 第16周程序阅读(3)
- 第16周程序阅读(3)
- 第16周阅读程序3
- 第16周-阅读程序3
- 第16周 阅读程序 3
- 第16周-阅读程序(1)
- 第16周-阅读程序(2)
- 第16周阅读程序(1)
- 第16周阅读程序(2)
- 第16周 阅读程序 (1)
- 第16周程序阅读(1)
- 第16周 程序阅读(2)
- 第16周 阅读程序 ( 2)
- 第16周 程序阅读(4)
- 第16周程序阅读(5)
- 第16周程序阅读(6)
- Install SharePoint2016 RTM - Hardware and Software Requirements
- Go语言概览——《Java程序员学习Go》之一
- 剑指offer----矩形覆盖问题的解析与实现
- DDD架构图
- android studio 插件
- 第16周阅读程序(3)
- 第15周 阅读程序 (1)
- 存储过程
- UILabel的自适应高度
- Ubuntu环境安装汇总
- keytool 错误: java.lang.Exception: 所输入的不是 X.509 证书
- ROS下使用intel Realsense摄像头进行人脸检测
- ZooKeeper-3.3.4集群安装配置
- 超快的虚拟机-Genymotion