The main function goes like this:
void main( int argc, char** argv ){
// validate that an input was specified
if( argc != 2 )
{
printUsage();
return;
}
if( !strcmp(argv[1], "train") ) learn();
else if( !strcmp(argv[1], "test") ) recognize();
else
{
printf("Unknown command: %s\n", argv[1]);
printUsage();
}
}
When I execute the program the console disappears as soon as it appears.
Thanks so much for your patience and help! 🙂
Nil
This program doesn’t use user input, but uses program arguments.
This program need 1 input argument that you can set that in these ways:
cmd, change directory(cd) to the where the exe file exists, and run the program with arguments. e.g.main.exe train