Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将一些 C 代码转换为 Fortran 90。Fortran 中有没有办法定义派生数据类型,即指针?下面的代码是我所说的一个例子。
typedef struct _rkmatrix rkmatrix; typedef rkmatrix *prkmatrix;
该结构_rkmatrix是在这段代码之外定义的。
_rkmatrix
链表的示例声明:
type MyCustom_type real :: value type (MyCustom_type), pointer :: next => null () end type MyCustom_type type (MyCustom_type), pointer :: Head_of_List