下面程序代码中fin为istream流类对象 并打开了一个文件 …… while(fin) { fin>>ch>>
已帮助 人
下面程序代码中fin为istream流类对象,并打开了一个文件, …… while(fin) { fin>>ch>>math>>eng>>phy; { // 若读取文件数据正常 float avg=1.0*(math+eng+phy)/3; } }

回答
共1条回复-
if(fin)##%_YZPRLFH_%##if(fin!=NULL)##%_YZPRLFH_%##if(fin!=0)
