systemå½æ°å¨stdlib.hä¸ã
å½æ°å£°æ为
int system(char *command);
åè½æ¯æ§è¡ä¸ä¸ªå½åæä½ç³»ç»ç shellå½ä»¤ï¼windowsä¸è°ç¨å°±å¦åå¨ms-dosçªå£ä¸æ§è¡ä¸é¡¹commandä¸åå¨çå½ä»¤ã
æ¯å¦system("dir");
ä¼æ¾ç¤ºå½åç®å½ä¸çæ件信æ¯ã
æ常ç¨çsystemæ令æ¯system("pause"); ä½ç¨æ¯ä½¿å½ä»¤è¡çªå£æåï¼åºç°ä¸è¡"Press any key to continue"çæåï¼ä¸è¬ç¨äºä¸»å½æ°ç»å°¾ä»¥ä¿åç°åºä¾è°è¯/æ¥çã
温馨提示:答案为网友推荐,仅供参考