关于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
while not eoln+char亦可。用string的前提是一行不超过255个字符。
2016年02月12日 03点02分 5
谢谢
2016年02月13日 05点02分
level 11
你可以换用ansistring[阴险]
2016年02月13日 06点02分 6
不用那么长啊[黑线]
2016年02月14日 05点02分
@巨型方块 那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