POINTER属性将对象指定为指针变量。 术语指针是指具有Fortran 90POINTER属性的对象。 整数POINTER语句作为POINTER语句提供有关先前版本的IBM® XL Fortran中记录的内容的详细信息; 这些指针现在称为整数指针。 语法 POINTER::,对象名(Deferred_shape_spec_list) ...
POINTER属性は、オブジェクトをポインター変数として指定します。 ポインターという用語は、Fortran 90POINTER属性を持つオブジェクトを指します。 整数POINTERステートメントは、以前のバージョンのIBM® XL FortranでPOINTERステートメントとして記述されていた内容の詳細を提供します。これらのポイ...
Example 1: A simple POINTER statement: POINTER (P, V) Here, V is a pointer-based variable, and P is its associated pointer.Example 2: Using the LOC() function to get an address: * ptr1.f: Assign an address via LOC() POINTER (P, V) CHARACTER A*12, V*12 DATA A / 'ABCDEFGHI...
Statement and Attribute: Specifies that an object or a procedure is a pointer (a dynamic variable). A pointer does not contain data, but points to a scalar or array variable where data is stored. A pointer has no initial storage set aside for it; memory
Statement and Attribute: Specifies that an object or a procedure is a pointer (a dynamic variable). A pointer does not contain data, but points to a scalar or array variable where data is stored. A pointer has no initial storage set aside for it; memory
The allocate statement allows you to allocate space for a pointer object. For example −programpointerExampleimplicit noneinteger,pointer::p1allocate(p1)p1=1Print*,p1p1=p1+4Print*,p1end programpointerExample 起始文件 eric@eric-virtual-machine:~/work/fortran_work/ModernFortran/codes/Pointers/01$ ...
现在,Fortran 编译器支持 POINTER 哑元参数的 INTENT 属性:可以为指针 dummy 指定 INTENT(IN)、INTENT(OUT) 或INTENT(INOUT)。例如,subroutine sub(P) integer, pointer, intent(in) :: p ... end指针的 INTENT 属性应用于指针,而非指针所指向的元素,因此对于 INTENT(IN) 指针,以下语句是非法的,因为这些语句...
The Fortran preprocessor translatesmwPointerto the Fortran declaration that is appropriate for the platform on which you compile your file. On 64-bit platforms, the Fortran type that represents a pointer isINTEGER*8. On 32-bit platforms, the type isINTEGER*4. If your Fortran compiler supports pr...
其实这句话您可以先翻译一下,您现在应该是已经设置了一个虚参数(dummy argument),他的类型是指针类型(pointer),但是您在使用的时候却没有按照指针类型参数去使用你所设置的这个虚参数,就是这个错误所在啦~
integer, pointer::numclg!number of colleges integer, pointer::nummjr!number of majors end typeinformation type(information),public,target::info end modulecollege !initializing the module modulecollege_init usecollege contains subroutineinit () ...