How to get command-line parameters in a C++ vector<string> ?
using namespace std;
int main(int argc, char* argv[])
{
vector<string> parameters(argv, argv+argc);
...
}
If you found this post or this website helpful and would like to support our work, please consider making a donation. Thank you!
Help Us