Okay how can I make a check if my own program is passed an argument when it starts.
if you question is as qouted above.. then you can simply look at your definition for main(), depending on how you handled your arguments.Quote:
Okay how can I make a check if my own program is passed an argument when it starts.
int main( int argc, char** argv )
{
if ( argc > 1 )
std::cout << "An argument was passed"\n";
return 0;
}