c/c++中argc,argv的用法

在这样一段程序(test.exe)中web int main(int argc, char** argv) { int a,b; a = atoi(argv[1]); b = atoi(argv[2]); std::cout << a + b << std::endl; return 0; } 命令行中输入:svg test.exe 4 5 则: argc=3 argv[0]=“test
相关文章
相关标签/搜索