题目内容
(请给出正确答案)
[单选题]
在下列各表达式中错误的是()。
A.
B.
C.
D.
提问人:网友zjing945
发布时间:2022-01-07
A.
B.
C.
D.
A、ofstream ofs("c:\scores.txt");
B、ofstream ofs("c:\\scores.txt");
C、ofstream ofs; ofs.open("c:\scores.txt"s);
D、ofstream ofs; ofs.open(R"hello(c:\scores.txt)hello");
A、ofstream ofile("file.txt");
B、fstream ofile;ofile.open("file.txt");
C、ofstream ofile;ofile.open("file.txt");
D、fstream ofile;ofile.open("file.txt",ios::in);
A、ofstream f("file.txt", ios::out);
B、ofstream f("file.txt");
C、fstream f("file.txt", ios::out);
D、ifstream f("file.txt",ios::out);
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!