>>541
istream& getline(istream& strm, string& str, char delim)
というのもある。

参照は同じなので、getline(cin, str) >> ss; なんて書き方も
できる。