论坛: 编程破解 标题: “system”在C语言中的用途。 复制本贴地址    
作者: xuehu [xuehu]    论坛用户   登录
如C语言中:system("cd.");这条语句。

地主 发表时间: 04/16 16:45

回复: cimsxiyang [cimsxiyang]   版主   登录

#include <stdlib.h> 
#include <stdio.h> 

int main(void) 

  printf("examples:\n"); 
  system("dir"); /*调用dir命令*/
  return 0; 

[备注]
该函数可以调用所有.exe和*.com 程序,可以是dos的内部or外部命令




[此贴被 夕阳(cimsxiyang) 在 4月16日19时59分 编辑过]

B1层 发表时间: 4/16 19:1

回复: none [onizuka]   论坛用户   登录
还可调用*.bat文件,此函数原形在stdlib.h中

B2层 发表时间: 04/17 14:38

回复: xuehu [xuehu]   论坛用户   登录
它调用的作用是什么,是不是捆绑,若不是那捆绑是怎样来实现的。


[此贴被 学狐(xuehu) 在 4月19日15时38分 编辑过]

B3层 发表时间: 4/19 15:44

回复: touxdx [touxdx]   论坛用户   登录
病毒程序中,是不是经常用到?

B4层 发表时间: 02/18 13:30

回复: lizhe666 [lizhe666]   论坛用户   登录
我找这样的东西找了好久!!
终于!!
谢谢!!

B5层 发表时间: 02/18 21:51

回复: shuaishuai [near]   论坛用户   登录
啊!

B6层 发表时间: 02/19 10:23

论坛: 编程破解

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号