Hello Wynd

You are right I needn't have include std::cout or std::endl in my code! Still getting my head around namespace and why it used.

cheers

hmm


quote:
--------------------------------------------------------------------------------
Originally posted by hmm
#include <iostream>
using namespace std;

int main() {

for (int i =0; i <10 ; i++ )
std::cout << i << std::endl;

return 0;
}
--------------------------------------------------------------------------------

Isn't the std:: unneccesary since you are using namespace std?