如何给可变大小的数组赋予指针
integer,allocatable::a(:)
allocate(a(students))
integer,target ::a(:)
integer,pointer::pa
pa=>a(1)
我知道这样是错的,但怎么改
[解决办法]
用vector试试呢
发布时间: 2012-02-22 19:36:55 作者: rapoo
如何给可变大小的数组赋予指针
integer,allocatable::a(:)
allocate(a(students))
integer,target ::a(:)
integer,pointer::pa
pa=>a(1)
我知道这样是错的,但怎么改
[解决办法]
用vector试试呢