在C/C++中调用Linux shell命令

方式如下:system(“命令”)

要加入头文件#include<stdlib.h>

e.g. system("ls");

posted @ 2012-06-12 19:49  菜鸟的世界  阅读(1046)  评论(0编辑  收藏  举报