代码搜索:implicit
找到约 5,250 项符合「implicit」的源代码
代码结果 5,250
www.eeworm.com/read/258562/11854946
f90 ex0841.f90
program ex0841
implicit none
include 'ex0841.inc' ! 插入ex0841.inc的内容
a=1
b=2
call sub()
stop
end
subroutine sub()
implicit none
include 'ex0841.inc' ! 插入ex0841.inc的内容
www.eeworm.com/read/258562/11854954
f90 ex0826.f90
program ex0826
implicit none
interface
subroutine sub(a,b) ! 定义子程式sub的接口
implicit none
integer :: a
integer, optional :: b
end subroutine sub
end interface
call
www.eeworm.com/read/258562/11854963
f90 ex0825.f90
program ex0825
implicit none
interface ! 定义函数func的接口
function random10(lbound, ubound)
implicit none
real :: lbound, ubound
real :: random10(10) ! 传回值是个数组
end function
end interfac
www.eeworm.com/read/258562/11854965
f90 ex0813.f90
program ex0813
implicit none
real a
common a ! 把浮点数a放在全局变量中
a = 1.0
call ShowCommon()
stop
end
subroutine ShowCommon()
implicit none
integer a
common a ! 把整数a放在全局变量中
writ
www.eeworm.com/read/258562/11854967
f90 ex0808.f90
program ex0808
implicit none
real :: a = 1
real :: b
real add
add(a,b) = a+b ! 直接把函数写在里面
write(*,*) add(a,3.0)
stop
end
www.eeworm.com/read/258562/11854969
f90 ex0829.f90
program ex0829
implicit none
integer :: n
integer, external :: fact
write(*,*) 'N='
read(*,*) n
write(*, "(I2,'! = ',I8)" ) n, fact(n)
stop
end
recursive integer function fac
www.eeworm.com/read/258562/11854987
f90 ex0832.f90
program ex0832
implicit none
integer, external :: func
write(*,*) func(2,3)
end program
pure integer function func(a,b)
implicit none
integer, intent(in) :: a,b
func = a+b
re
www.eeworm.com/read/258562/11854993
f90 ex0823.f90
program ex0823
implicit none
integer :: a=4
integer b
call div(a,b)
write(*,*) a,b
stop
end program
subroutine div(a,b)
implicit none
integer, intent(in) :: a ! 指定a是只读
www.eeworm.com/read/258562/11855004
f90 ex0436.f90
program ex0436
implicit none
real(kind=4) :: a
real(kind=8) :: b
a=1.0_4 ! 确定1.0这个数字是使用单精度
b=1.0_8 ! 确定1.0这个数字是使用双精度
write(*,*) a,b
stop
end
www.eeworm.com/read/258562/11855017
f90 ex0429.f90
program ex0429
implicit none
real pi
parameter(pi=3.14159)
write(*,"(F4.2)") sin(pi/6)
end