how to prevent losing double quotes in argv?

后端 未结 2 1808
抹茶落季
抹茶落季 2021-01-21 10:15

Ok, I know I can do loop like this:

for (int i=1; i<=argc-1;i++) {
  cout << argv[i] << endl;
}

But this way double quotes are l

2条回答
  •  后悔当初
    2021-01-21 11:07

    When you need the original command line, your can use the GetCommandLine() API function.

提交回复
热议问题