https://teratail.com/questions/206822
質問者「scanfとかで、値を読み取るみたいに文字列を読み取りたい」
回答者「c++での開発ならscanfではなくcinを使うべき」
質問者「C++の場合は、scanfなんですね!!」