📄 ex1106.f90
字号:
module MA
implicit none
type ta
integer a
end type
interface operator(+)
module procedure add
end interface
contains
integer function add(a,b)
type(ta), intent(in) :: a,b
add=a%a+b%a
end function
end module
program main
use MA
implicit none
type(ta) :: a,b
integer :: c
a%a=1
b%a=2
c=a+b
write(*,*) c
end program
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -