Knowledge base dedicated to Linux and applied mathematics.
Home > C++ > FAQ C++ > FAQ C++ - STL > How to get command-line parameters in a C++ vector<string> (...)
Saturday 4 December 2010, by Nadir Soualem
using namespace std;
int main(int argc, char* argv)
vector<string> parameters(argv, argv+argc);
This website was useful to you? Then it's a good reason to buy me a coffee.
It will give me the energy and motivation to continue this development. Thank you !
Blog template built with Bootstrap and Spip by Nadir Soualem @mathlinux.
Back to top