[Solved] Optimization setting

All command line arguments you supply are interpreted by the compiler (or compiler driver, in the case of some compilers like gcc). They may then be passed on to other programs that the compiler (or compiler driver) executes to complete particular tasks. Incidentally, -o is not an optimisation setting with quite a few compilers. It … Read more

[Solved] C++ program flags [closed]

int main(int argc, const char* argv[]) { for(int i = 0; i < argc; ++i) { // argv[i] contains your argument(s) } } Some more details: Accepting arguments passed to your program can be done by adding two arguments to main: One int, which is assigned the number of arguments you give to your program, … Read more