#include <stdlib.h> int main(int argc, char const *argv[]) { system("ls -l"); return 0; }
与命令行输入ls -l的效果一致