12.3 KB, 下载次数: 12
Program www_fcode_cn
use Test_mode
Implicit None
Character*30 c , r , s
r = "rr"
s = "ss"
call str_cal_test( r , s , c )
write(*,*) trim(c)
End Program www_fcode_cn
module Test_Mode
implicit none
contains
subroutine str_cal_test(rr,ss,outp)
!DEC$ ATTRIBUTES DLLEXPORT,ALIAS:"str_cal_test"::STR_CAL_TEST
implicit none
character(*),intent(in) :: rr,ss
character(*),intent(out) :: outp
outp = trim(rr)//trim(ss)
end subroutine
end module
QQ截图20150127084612.png (11.64 KB, 下载次数: 385)
andy8496 发表于 2015-1-27 09:24
谢谢版主!Fortran是很容易。我想知道VBA能实现吗?VBA实数整数没问题,但是这个字符串我试了好久,也按照 ...
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |