When you have using std::cout; or (ugh) using namespace std;, you can drop the std:: from couts. That's the whole point. If you're just going to leave the std:: in then you don't need anything special.
Code:
#include <iostream>
int main(void) {
std::cout << "Hello, World!" << std::endl;
return 0;
}
or
Code:
#include <iostream>
using std::cout;
using std::endl;
int main(void) {
cout << "Hello, World!" << endl;
return 0;
}
or (as I said, ugh)
Code:
#include <iostream>
using namespace std;
int main(void) {
cout << "Hello, World!" << endl;
return 0;
}