[c++] How to convert a command-line argument to int?