main.cpp
来自「银行业务模拟系统」· C++ 代码 · 共 12 行
CPP
12 行
#include <fstream>
#include "simulate.h"
void main()
{
std::ofstream fout("simulation.txt");//将输出流定向到文件
Simulate(fout, 540);//模拟银行业务
cout << "The result of simulation has been put into file 'simulation.txt'\n"
<< "Please open the file with notepad to have a view.\n";
system("pause");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?