小白求助 发表于 2023-5-26 15:00:58

二维数组读入的问题

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMQAAAMvCAYAAACNzX+3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAABVcSURBVHhe7d09klzXmQTQwqyFDAUNLQDcgRQyZI05JuiSxqyA5hikKy1BlgwFuANqATIUDGAR3AHnVeE2Kh9eo/FL5QfWOREdpPgDAonKvoV3G6lHP//88y8n4OLRL5v153Dz/mv9EdgoBASFgPDWhXj+/ZenR4++Ov2w/vc0079/7+6H01ePHp2+/P75+t/hh6+2H+uj01e/nR/sGG9diGf//ufp9OTPpz+s//2hfvjq0faT+uXpvp9vqDk/Zbp4+uT8tOmDPp48Xd/WW3j65PzvPP7lu2frL7zBi3/+Qz+e/PIO38X/mGffPb7n+/qeH+/yk8DBtRCv9eyX7x6fw/64L6Z3LcSbvHhRzXzBv5+nvzzZXuCP7wtoffLy2v/43uIt07PT+d3Sx3y7BGOtYiwvPiud//K7fjz02epyGjz+bjtrrg4nxLPvfnn84Ldzd1K978fHO43a7n2L5bj4KN7wlmm9CF95Mb+bVbJXfsIOhbj7Ncx7/rc++bdM7/BruHvfRvFRPPyW6Yf/O32zvV16/N9/On22/tI7++Hvp79uf3jy5ze84frDX07bi/p0+uc3p/+5xUdP249/+/l4q48fv37vnw3eZAt486FvR+4+Xv0M/foT5v5fVN+9ZXvlr3+EJ2B3H5/iZ9fL6feak/P895wYH88qxNGLF+z97+lf/L23eHuyfl1w30/Y/YXY3L343/ie+GO8nZvmxY/p8EN/TY4vfy3xm8qg695CPFSGO29Tiof+mdcW4u6F/lb//fv+/U/Zs+3H9eJF/uqP/dVT4q4MToeP65VCvM9Tpte8KB84Hc4efEG/6RfY7/gW6o2HzTCXbB78Tr/mJOGDvSxEHr9PL3/+prdEdxdHT9dn9P0//9DpcPbwZ/gHTolVtBcv9oe+j6vcv4m3E7/Ft4czXQrx6ovzRTnethA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gnsICAoBQSEgKAQEhYCgEBAUAsKjn3/+2T0ELE4IeOl0+n8ijVNt//CaPQAAAABJRU5ErkJggg==
请问我想要把这两列,读入到一个这样的(2,9999)的二维数组里要怎么写才能读入呢

fcode 发表于 2023-5-26 16:00:33

Real :: a(2,9999)
Open(12,File="文件名")
Do i = 1 , 9999
read(12,*) a(:,i)
End Do
Close(12)

小白求助 发表于 2023-5-26 16:57:04

fcode 发表于 2023-5-26 16:00
Real :: a(2,9999)
Open(12,File="文件名")
Do i = 1 , 9999


感谢老师!
页: [1]
查看完整版本: 二维数组读入的问题