0
only cout gives error
i have to do std::cout << «Hello World!», if only do cout i get an error message
2 odpowiedzi
+ 2
std::cout << «Hello World!» ---> std::cout << "Hello World!";
+ 1
If you just want to cout without using std::, then you have to add
using namespace std;
after your includes.
This is auto-generated in the code playground.
However I recommend to use it without namespaces. They are sometimes an error source for larger projects, so it's best to not get too used to it...