手机扫码访问

导航
您当前的位置:首页 > 高教类 > 工学类
问题:

[多选题]已经包含头文件的情况下,下列哪些文件操作的片段在语法上是不正确的Y4T答案窝(daanwo.com)-大学作业答案分享平台
Aint x = 0; ifstream myfile; myfile.open("a"); myfile << x; if (myfile.eof())     cout << x << ": end of file" << endl;Y4T答案窝(daanwo.com)-大学作业答案分享平台
Bint x = 0; ifstream myfile('a'); myfile >> x; if (myfile.eof())     cout << x << ": end of file" << endl;Y4T答案窝(daanwo.com)-大学作业答案分享平台
Cint x = 0; ifstream myfile; myfile.Open("a"); myfile >> x; if (myfile.eof())     cout << x << ": end of file" << endl;Y4T答案窝(daanwo.com)-大学作业答案分享平台
Dint x = 0; ifstream myfile("a"); myfile >> x; if (myfile.EOF())     cout << x << ": end of file" << endl;
答案解析:

相关问题
关于我们 | 用户指南 | 版权声明 | 给我留言 | 联系我们 | 积分商城 | 答案求助 | 网站地图
Copyright © 2020 www.daanwo.com All Rights Reserved