Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to get command arguments c++

#include <iostream>
int main( int argc, char *argv[] )
{
   while( --argc ) std::cout << *(++argv) << "
";
}
//prints all the options
 
PREVIOUS NEXT
Tagged: #command #arguments
ADD COMMENT
Topic
Name
7+5 =