I tried :
ostringstream oss; read a string from file and put to oss; string str; str << oss.str();// error here "error: no match for ‘operator>>’ in 'oss >> str' " If I use str = oss.str(); Instead of printing the value of the string, it prints out "....0xbfad75c40xbfad75c40xbf...." likes memory address.
Can anybody tell me why? Thank you.