I have this line of code in my program
I would like to convert line into a float, now I can't use
because atof() takes in char * as its argument.
Does someone know how can I convert a string into a float or at least convert type string to char * then use atof().
Code:
string line = "1";
Code:
float i = atof(line)
Does someone know how can I convert a string into a float or at least convert type string to char * then use atof().
Comment