Like if the user enters "38 F" how do I take out the 38 only and store it in a variable?
so far my program goes like this:
string text;
double temperature;
cout << "Enter temperature: ";
getline(cin, text); // user enters 38 F
temperature = text // store 38 from string into double