关于2维数组的简单问题,求解
pascal吧
全部回复
仅看楼主
level 7
巨型方块
楼主
有一2维数组
12535486
45854686
45851564(无空格)
请问怎么读入?
2016年02月11日 02点02分
1
level 7
巨型方块
楼主
用char吗
2016年02月11日 02点02分
2
level 7
巨型方块
楼主
别沉别沉啊,来人啊
2016年02月11日 03点02分
3
level 11
某魔法◆邪神
string
2016年02月11日 03点02分
4
巨型方块
非常感谢
2016年02月11日 04点02分
level 12
Xero⚡12
while not eoln+char亦可。用string的前提是一行不超过255个字符。
2016年02月12日 03点02分
5
巨型方块
谢谢
2016年02月13日 05点02分
level 11
myetyet
你可以换用ansistring
2016年02月13日 06点02分
6
巨型方块
不用那么长啊
2016年02月14日 05点02分
myetyet
@巨型方块
那string够了for i:=1 to n do begin readln(str); for j:=1 to length(str) do a[i,j]:=ord(str[j])-48; end;
2016年02月14日 06点02分
巨型方块
先通过string读入,再存入char数组,谢谢,受教了
2016年02月14日 13点02分
level 9
张维为
什么语言
2016年02月14日 23点02分
7
巨型方块
pascal咯
2016年02月15日 02点02分
1