I'm trying to convert string to float but it will not compile. I found the stof thing on the internet but clearly I'm not using it wright. Please help.
in my projuct's settings I have add file, remove file, project tree, notes and set programs arguments...
I have no clue how to do it.
Is there any other way to convert string to number and vice versa?
if I do this string str3 = std::to_string (num1 + num2);
I get "to_string is not a member of std
if I do this string str3 = to_string (num1 + num2);
I get "to_string is not declared in this scope"
am I doing it wrong, or is it my compiler again and I need to look for other ways?