第16周阅读程序4(2)
来源:互联网 发布:mac怎么安装第三方软件 编辑:程序博客网 时间:2024/06/08 16:09
/* * Copyright(c)2016,烟台大学计算机与控制工程学院 * All rights reserved. * 文件名称:第16周阅读程序4(2) * 作者:马康泰 * 完成日期:2016.6.15 * 版本号:v1.0 * * 问题描述:阅读下面的程序,指出其功能,体会seekg()、tellg()等函数的功能及其用法 * 输入描述: * 程序输出: */ #include <fstream>using namespace std;int main (){ long pos; ofstream outfile; outfile.open ("test.txt"); outfile.write ("This is an apple",16); pos=outfile.tellp(); outfile.seekp (pos-7); outfile.write (" sam",4); outfile.close(); return 0;}}
0 0
- 第16周 程序阅读(4)
- 第16周程序阅读(4)
- 第16周-阅读程序(2)
- 第16周阅读程序(2)
- 第16周 程序阅读(2)
- 第16周 阅读程序 ( 2)
- 第16周程序阅读(2)
- 第16周阅读程序——4(2)
- 第16周阅读程序4(2)
- 第16周-阅读程序4(2)
- 第16周 阅读程序 4
- 第16周-阅读程序(1)
- 第16周阅读程序(1)
- 第16周阅读程序(3)
- 第16周-阅读程序(3)
- 第16周 阅读程序 (1)
- 第16周程序阅读(1)
- 第16周程序阅读(3)
- HDU 3474 单调队列
- 【Apache Shiro】学习笔记——Authentication基础
- Android Studio – 使用百度地图SDK教程
- 漫谈deepcopy(深拷贝)和shallowcopy(浅拷贝)
- Gradle 多渠道打包实践
- 第16周阅读程序4(2)
- 短信验证
- 物理层及数据通信基础
- elasticsearch 复杂查询 模板查询
- spring MVC配置详解
- scrollview和viewpager联动
- Activity的简介
- 论文:Deep Face Recognition 概括
- ACM随笔------计蒜客 求平方根