下列程序段的作用是逐行读取文本文件。 char line[200]; …… //打开文件 ifstream ff(file.dat);

大学网课 已帮助 人

下列程序段的作用是逐行读取文本文件。 char line[200]; …… //打开文件 ifstream ff("file.dat"); if(!ff ) { cout<<“文件打开失败!”; return 1; } //读文件 while(ff) { ff. (line, 190 ); // 读取一行文字 …… } ff.close(); //关闭文件

下列程序段的作用是逐行读取文本文件。 char line[200]; …… //打开文件 ifstream ff(file.dat);

热搜:ts16949质量管理体系程序文件范本