/*
*Copyright (c) 2016,烟台大学计算机学院
*All rights reserved.
*文件名称 :第16周程序阅读(7)
*作 者 : 于子娴
*完成日期 : 2016.6.23
*版 本 号 : v6.0
*
*问题描述 :
*输入描述 :
*程序输出 :
*/
#include<iostream>
#include<fstream>
using namespace std;
const char * filename ="a.txt";
int main()
{
long l,m;
ifstream file(filename,ios::in|ios::binary);
l=file.tellg();
file.close();
cout<<"size of "<<filename;
cout<<" is "<<(m-1)<<" bytes.\n";
return 0;
}
第16周程序阅读(7)
最新推荐文章于 2019-04-10 22:31:52 发布