求助,为什么assign的exitcode=2
pascal吧
全部回复
仅看楼主
level 9
列宁2003
楼主
如题
2016年06月27日 01点06分
1
level 9
列宁2003
楼主
program exe_1(input,output);
var
n,m:longint;
begin
assign(input,'exe_1.in');
reset(input);
assign(output,'exe_1.out');
rewrite(output);
readln(n,m);
writeln(n+m);
close(input);
close(output);
end.
2016年06月27日 01点06分
2
level 7
什么鬼QAQ233
文件不存在 在fpc目录新建in文件
2016年06月27日 14点06分
3
列宁2003
但用text变量可以用assign(t,'xxx.out');,但不能用read(t,n);
2016年06月28日 10点06分
什么鬼QAQ233
反正错误2就是文件不存在
2016年06月28日 10点06分
level 11
北方火柴
assign过后只能用EXE运行
你原程序目录下会有一个
2016年07月01日 13点07分
4
level 10
Ivasd℉
123
2017年03月01日 08点03分
5
level 10
jct傻子
你文件呢……
呵呵
不要理我,我是水经验的
2017年03月01日 12点03分
6
1