Quote:
Originally Posted by Eoin
Well the following will work:
#include<sstream>
#include<string>
int main(){
std::string s;
std::stringstream ss("A B C");
s = ss.str();
} Is that want you're looking for?
|
No, I want to see if there is a way to do something like getline(x,y,delim) using the operator >>. It's something like std::skipws but std::skipws is only about the first white space but not the delimiter.
After some googling and searching in my books, it seems that there is no way to do it just by using the operator >> . Anyone could confirm this?