如何给可变大小的数组赋予指针integer,allocatable::a(:)allocate(a(students))integer,target ::a(:)inte
如何给可变大小的数组赋予指针
integer,allocatable::a(:)
allocate(a(students))
integer,target ::a(:)
integer,pointer::pa
pa=>a(1)
我知道这样是错的,但怎么改
[解决办法]
用vector试试呢
如何给可变大小的数组赋予指针
integer,allocatable::a(:)
allocate(a(students))
integer,target ::a(:)
integer,pointer::pa
pa=>a(1)
我知道这样是错的,但怎么改
[解决办法]
用vector试试呢