int main (int argc, char **argv) { ThisSim sim; track = sim.contains(argv, argc, "-track"); // check whether cmd-line contains -track return sim.run(argc, argv) ? 0 : 1; }
int main (int argc, char **argv) { ThisSim sim; track = sim.contains(argv,argc,"-track") != 0; return sim.run(argc, argv) ? 0 : 1; }