01./*
02.02.2.* 程序的版权和版本声明部分
03.03.3.* Copyright (c) 2013, 烟台大学计算机学院学生
04.04.4.* All rights reserved.
05.05.5.* 文件名称:Complex.cpp
06.06.6.* 作 者: 李全港
07.07.7.* 完成日期:2013 年 6月 21日
08.08.8.* 版 本 号: V 1.0
09.09.9.* 输入描述:无
10.10.10.* 问题描述:无
11.11.11.* 程序输出:无
12.12.12.*/
#include <fstream>
using namespace std;
int main ()
{
long pos;
17-4
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;
}