12 2015 档案

摘要:argc是命令行总的参数个数argv[]是argc个参数,其中第0个参数是程序的全名,以后的参数命令行后面跟的用户输入的参数,比如: int main(int argc, char* argv[]) { int i; for (i = 0; i>i; return 0; } 执行时敲入 F... 阅读全文

posted @ 2015-12-22 10:12 程序员乌鸦 阅读(285) 评论(0) 推荐(0)

摘要:#include #include #include using namespace std;int main(int argc, char **argv){ if (argc < 3) { cout << "Usage : test.exe /user:someone /pwd:password"... 阅读全文

posted @ 2015-12-02 12:58 程序员乌鸦 阅读(1612) 评论(0) 推荐(0)

导航