主题:读入数据到数组中
一行中有四个数据,如
1.1 2.2 3.3 4.4
也定义了一个数组real a(4)
怎样将这四个数据读入到这个数组中呢?
open(100,......)
read (100,*) a(i),i=1,4 !在这个地方读取一行中的四个数据到数组。
可是总是通不过。不知道怎样修改?
1.1 2.2 3.3 4.4
也定义了一个数组real a(4)
怎样将这四个数据读入到这个数组中呢?
open(100,......)
read (100,*) a(i),i=1,4 !在这个地方读取一行中的四个数据到数组。
可是总是通不过。不知道怎样修改?