cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Read content of stringstream
Read content of stringstream
Oct 3, 2012 at 4:16am UTC
purpleblue
(4)
Hi,
supposed I just read a string into stringstream. Then I want to check if this string that just being read into is a particular word. for example "dog". how do I check it?
thanks
Oct 3, 2012 at 4:30am UTC
pogrady
(677)
stringstream stream;
if(!stream.str().compare("dog"))
cout<<"not equal to dog."<<endl;
Topic archived. No new replies allowed.