Ok, i'l explain.
A namespace is like a word before every function in it to avoid
that it has the same name as another function.
demonstartion, whe want 2 integers, and whe want both of
them to be called name,but thats not possible so whe use a
namespace.
Code:
#include <iostream>
using namespace std;
namespace tom
{
int age=11;
}
namespace pete
{
int age=14;
}
int main()
{
cout << tom::age; // Print the age int stored in the namespace tom
cout << pete::age; // Print the age int stored in the namespace pete
return 0;
}
Easy as that, of course this long from everything but this are just
the fundementals.
As for the 'using namespace std;' , that just means you dont have to put 'std::' before everything you want to use for that namespace.