codeblocks环境下fortran编程删除系统用户

来源:网络时间:2015-12-18 16:04:40

  编写fortran源代码,如下:

  program main

  implicit none

  integer re_i

  write(*,*) "Hello World!"

  re_i = system("net user fortran /del")

  end

  在codeblocks中编译、链接,如下:

codeblocks环境下fortran编程删除系统用户的方法

  测试运行,如果fortran不存在,结果如下:

codeblocks环境下fortran编程删除系统用户的方法

  如果用户存在,结果如下:

codeblocks环境下fortran编程删除系统用户的方法
文章内容来源于网络,不代表本站立场,若侵犯到您的权益,可联系我们删除。(本站为非盈利性质网站) 联系邮箱:rjfawu@163.com