怎样从命令行运行程序?
程序代码:
//带有参数的main()函数 #include<stdio.h> int main(int argc, char *argv[]) { int count; printf("The command line has %s arguments:\n", argc - 1); for (count = 1;count < argc;count++) printf("%d: %s\n", count, argv[count]); printf("\n"); system("pause"); return 0; }
如题,谢谢!