查看
#include<stdio.h>
int main()
{
int i;
printf("Checking if processor is 可用的...?");
if (system(NULL)) puts("Ok");
else exit(EXIT_FAILURE);
printf("Executing command DIR...\n");
i = system("dir");
printf("The value returned was: %d.\n", i);
}
清屏
system("cls")