11-04-2.cpp
来自「more efftive 代码」· C++ 代码 · 共 12 行
CPP
12 行
#include <cstdlib>#include <algorithm>using namespace std;int main(){ char* commands[] = {"uptime", "pwd", "ls"}; const int N = sizeof(commands) / sizeof(char*); for_each(commands, commands + N, system);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?