|
编译没问题,运行后,,
Process returned -1073740940 (0xC0000374) execution time : 6.129 s
Press any key to continue.
[Fortran] 纯文本查看 复制代码 03 | real , allocatable , dimension ( : , : , : ) :: xyz ( : , : , : ) |
05 | integer , allocatable , dimension ( : ) :: np ( : ) , mat ( : ) |
10 | write ( * , * ) '---------输入多段线中最多点数---------' |
12 | allocate ( np ( numbers ) , xyz ( 100 , 100 , 100 ) , mat ( 100 ) ) |
15 | open ( 10 , FILE = 'shichong.dat' , status = 'old' ) |
17 | read ( 10 , 800 , end = 900 ) aa 1 |
18 | if ( aa 1 ( 1 : 8 ) .eq. 'POLYLINE' ) then |
21 | read ( 10 , 800 , end = 900 ) aa 2 |
22 | if ( aa 2 ( 1 : 3 ) .eq. ' 8' ) then |
25 | else if ( aa 2 ( 1 : 3 ) .eq. ' 10' ) then |
28 | else if ( aa 2 ( 1 : 3 ) .eq. ' 20' ) then |
31 | else if ( aa 2 ( 1 : 3 ) .eq. ' 30' ) then |
34 | else if ( aa 2 ( 1 : 6 ) .eq. 'VERTEX' ) then |
36 | else if ( aa 2 ( 1 : 6 ) .eq. 'SEQEND' ) then |
42 | 900 write ( * , * ) '--------多段线读取完毕,共' , npl , '条-------' |
|
|