- UID
- 697
- 性别
- 保密
StarkLee
- 积分
- 170
- F 币
- 96 元
- 最后登录
- 2014-12-17
- 贡献
- 52 点
- 注册时间
- 2014-11-27
- 权杖
- 0 枚
惯用编译器:GFortran / G77 for Linux
入门
StarkLee
- F 币
- 96 元
- 贡献
- 52 点
|
本帖最后由 306908677 于 2014-12-7 20:54 编辑
百事可乐 发表于 2014-12-6 16:13
我这里有一个重载 matmul 的代码,给你当例子吧
[Fortran] 纯文本查看 复制代码 module matmul_int
[/quote]
[mw_shl_code=fortran,true] program main
implicit none
interface
subroutine random_arr(a)
implicit none
integer(4),intent(out),allocatable ::a(:)
end
end interface
interface operator(.U.)
Function addy(c1, c2)
implicit none
integer, intent(in) :: c1(:), c2(:)
integer, intent(out):: addy(20)
错误:
Function addy(c1, c2)
1
错误: (1)处的符号不是一个 DUMMY 变量
/Users/StarkLee/Desktop/EQU2.F90:33.1:
function addy(c1,c2)
1
错误: (1)处的符号不是一个 DUMMY 变量
Jarvis:~ StarkLee$
什么原因啊== |
|