for (int i=1; i<=argc-1; i++) { cout << argv[i] << endl; }
"something here"
被视为args数组的一个元素,引号丢失了。
$ ./my-program \"hello\ world\"
当您需要原始命令行时,您可以使用