编写fortran源代码,如下:
program main
implicit none
integer re_i
write(*,*) "Hello World!"
re_i = system("tasklist")
end
在codeblocks中编译、链接,如下:
测试、运行,结果如下: