The syntax of C++ and Java is similar, but the classes are very different. In C++ is are fat function libraries.
Please read the tutorial about
strings and
Basic Input/Output in C++ to learn to replay the scanner and println.
But you need to read or watch some beginner tutorials about C++ to get a kickstart.