Noob here. Trying to understand pointers in conjunction with stringstreams. When I try to access the str() from my strinstream pointer it will not work. My code is below. Compiler error: error: request for member ‘str’ in ‘ss’, which is of non-class type ‘std::stringstream* {aka std::basic_stringstream<char>*}’
The . operator has higher precedence than the * operator. You can write : cout << (*ss).str();. But in C and C++ you can write this in a shorter form : ss->str().
Thank you sir... After some years of dealing of higher level languages I can see it's going to take some getting used to with C++ syntax/parsing rules. Thanks again.