本帖最后由 huiselilun 于 2016-10-20 15:28 编辑
[Fortran] 纯文本查看 复制代码 Type :: stPLink
Double Precision :: Value
Type(stPLink) , Pointer :: pNext
End Type stPLink
.
.
.
Type( stPLink ) , Pointer :: pwor(:)
.
.
.
Allocate(pwor%pNext, stat=err)
如果我的链表里的数据值是个数组怎么办?上面是我的定义,分配内存的时候提示pNext错误:
error #6563: A component with POINTER attribute may NOT be to the right of an array component (6.1.2). [PNEXT]
|