name space

M

muhammadibraheem

why we use namespace std;?
and why we use ":";";"mean colon and double colon what it function.
 
J

James Kanze

why we use namespace std;?

Because that's where (almost) all of the functions defined in
the standard reside.
and why we use ":";";"mean colon and double colon what it
function.

I'm not sure I understand your question. The token "::" is a
scope resolution operator, which controls name lookup. We use
it when we want to control name lookup.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,886
Members
47,419
Latest member
ArturoBres

Latest Threads

Top