Math-Linux.com

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> (...)

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);
   ...
}

Any message or comments?

comments powered by Disqus