怎样在usaco提交译题

来源:百度知道 编辑:UC知道 时间:2024/06/23 12:20:39
包括文件类型,路径

pascal:
读:
assign(input,'文件名');
reset(input);
(input是保留字,不用定义)
close(input);
写:
assign(output,'文件名');
rewrite(output);
(output也是保留字,不用定义)
close(output);
c++:
好象是这个,记不清了,我很少使c++,请c++高手来解答吧
#include<fstream.h>
fstream fink('文件名');
fink.close();
p.s:usaco提交时,与在同目录内编译一样,文件无路径