📄 pr19011.cpp
字号:
////////////////////////////////////////
// File Name: pr19011.cpp
////////////////////////////////////////
#include <fstream>
int main()
{
// An ofstream object without a file.
std::ofstream tfile;
std::cout << "Creating the test1.dat file..."
<< std::endl;
tfile.open("test1.dat");
tfile << "This is TEST1";
tfile.close();
std::cout << "Creating the test2.dat file..."
<< std::endl;
tfile.open("test2.dat");
tfile << "This is TEST2";
tfile.close();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -