You just try to convert char* to int. You code should be:
int number = atoi(argv[1])
0
solved c++ Why can’t I use static_cast to convert char* to int?
You just try to convert char* to int. You code should be:
int number = atoi(argv[1])
0
solved c++ Why can’t I use static_cast to convert char* to int?