/*編譯成test.exe後,假設存放在: D:\cpp files\test 打開命令提示字元(按下win + R,打cmd),輸入: D:\cpp files\test\test.exe 87 */ #include <iostream> using namespace std; int main(int argc,char *argv[]) { int i; cout<<"argc = "<<argc<<endl; for(i=0;i<argc;i++) cout<<argv[i]<<endl; return 0; }
0 意見