问题:未分配内存的动态数组,如何作为参数传递到子函数,并在子函数中分配内存
上面的写法会提示错误
||Error: Dummy argument 'ns' of procedure 'rd' has an attribute that requires an explicit interface for this procedure|
解决方法
常用方法1,主程序里加入interface block
问题:未分配内存的动态数组,如何作为参数传递到子函数,并在子函数中分配内存
上面的写法会提示错误
||Error: Dummy argument 'ns' of procedure 'rd' has an attribute that requires an explicit interface for this procedure|
解决方法
常用方法1,主程序里加入interface block