ofstream 输出文件流类 outfile随时输出到文件
31与42行为什么一个是outfile一个是ofstream?
31行是变量名
42行是类型 ofstream 以输出方式打开文件,写操作