In this two code which one is good practice for doing some project? I'm used to using "using namespace std;" is there any problem to use this? or i use scope resolution operator?
code 1:
#include<iostream>
using namespace std;
int main()
{
cout<<"Hello world"<<endl;
return 0;
}
code 2:
#include<iostream>
int main()
{
std::cout<<"Hello world"<<std::endl;
return 0;
}