system_sample.c

来自「Linux网络编程PPT和源码,供学习参考」· C语言 代码 · 共 12 行

C
12
字号
#include <sys/types.h>#include <unistd.h>#include <stdlib.h>int main(int argc,char *argv[]){	printf("hello world\n");	system("ls -l");	//执行ls -l命令	printf("hellow world\n");	return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?