Home
WebHosting
Phone
Promo-video
Program
Website
Database
> C++ How do I pull out a value in a string and store in a variable?
Top concern
What are good sites to learn for free how to create a login system with user portals for my site?
Can someone who does technical design please help me design a car with rhino 5 software?
How Do You Detect Arrow Key Presses In JavaScript?
What do u think i should learn next?
In Java, how do you print your name in block form?
Why am I getting an error for my Java program?
Gif only plays once?
C++ code help?
In SQL Display city name, country name and continent for cities that begin with the alphabets A, B, C, and D. Display th
How to create a table in mysql?
How to count words only in the body of text (excluding tables and figures)?
Any good website to get JavaScript and jQuery Training?
Computer Sci Help?
Is there any program that can find all the colors in an image ?
How do you add a character to another string in java?
C++ How do I pull out a value in a string and store in a variable?
C++ How do I pull out a value in a string and store in a variable?
Posted at:
2014-12-18
Use this as a reference:
http://www.cplusplus.com/reference/strin...
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);
// I run into a dead end at this point
Previous:
What's the best, most efficient way to learn Python?
Next:
How do I write a java program to make a multiplication table using a while loop?