How to Implement Program Arguments and How They Are Parsed in C/C++
C and C++ offer a high level of freedom to the programmer. That is efficiently dangerous, as the programmer has to know what he is doing. Computers are deterministic machines. They do what they are told to do, and if what theyβre told is wrong, they will most likely proceed anyway. While C and C++ compilers do warn programmers and in some cases even refuse to compile, that only happens if grammar errors (as in programming-language grammar) are found. Donβt expect the compiler to try to guess what you are trying to do. It will assume you know what you …