导航:[首页]->[cpp]->[Windows下使用__argc,__argv获取参数]

Sample

extern int __argc;
extern TCHAR* __targv;
extern char* __argv;
extern wchar_t* __wargv;

参考

  1. http://www.cplusplus.com/forum/windows/79342/
  2. http://www.cnblogs.com/ahuo/p/3295901.html
  3. http://qjw.qiujinwu.com/blog/2013/06/18/__progname/