convert cmd to integer c++ code example Example: argument to number C++ // C++ Code int x = atoi(argv[1]);