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