I\'m writing a very basic command line C++ application that takes arguments on execution.
I just started C++ today, and it seems apparent that you can only take
You are just converting a char * variable to float by typecasting. It will typecast value of the pointer to float, not the string to float.
char *
float
You need to use functions such as atof, strtof to convert string to float. Or you can write your own function to to convert string to float.
atof
strtof