pascal编程入门题...
发布网友
发布时间:2023-05-03 22:10
我来回答
共2个回答
热心网友
时间:2023-10-22 19:12
var ch:integer;
begin
assign(input,'data.in');reset(input);
assign(output,'data.out');rewrite(output);
while not eof do
begin
while not eoln do
begin
read(ch);
write(ch);
end;
readln;
wrieln;
end;
close(input);close(output);
end.
没有验证过,自己微调吧,大概这样
热心网友
时间:2023-10-22 19:13
var ch:integer;
begin
assign(input,'data.in');
assign(output,'data.out');
reset(input);
rewrite(output);
while not eof do
begin
while not eoln do begin read(ch);write(ch);end;
readln;wrieln;
end;
close(input);
close(output);
end.