0
Why we can't use endl when we use std::cout enstand of cout ?
2 Réponses
+ 3
Actually Dlite , one can only omit the "std::" with the statement:
using namespace std;
and also using the include statement with or without the using statement.
+ 2
std::endl, std::cout
In case you include the preprocessing directive
#include <iostream>,
then you can simply use. cout, endl without prepending "std::"