There are so many errors in your code, most of them have already been adressed in the other answers. But don't you know that the creators of C++
designed it so that program source code doesn't get obverly long when translated?
It's not std::cendehors
, but std::deh
(short for dehors) as std::cin
translates to std::ded
(for dedans).
Also note there used to be compilers that didn't automatically flush on \n
, so it's better to use std::findl
(fin de ligne). So it should be like this:
std::deh << "Bonjour le monde!" << std::findl;
EDIT: Sorry, I didn't spot another mistake. The correct form of course is using guillemets like this:
std::deh << «Bonjour le monde!» << std::findl;