cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
wat is namespace std
wat is namespace std
Feb 16, 2009 at 8:01pm UTC
closed account (
i2v7M4Gy
)
"all the elements of the standard C++ library are declared within wat is called a namespace,the namespace with the name std" Please explain this.Wat the namespace std include?
Feb 16, 2009 at 8:38pm UTC
awasteoflife
(73)
I'm not one hundred percent sure about how much is used with the namespace std, but one example is
cout
and
cin
.
without using namespace std, you would have to write
std::cout
and
std::cin
Feb 16, 2009 at 8:41pm UTC
Bazzy
(6281)
The
std
namespace contains every function, class or object from the C++ standard library
eg:
cout
,
vector
....
Everithing documented at
http://www.cplusplus.com/reference/
is in the std namespace
http://www.cplusplus.com/doc/tutorial/namespaces.html
Topic archived. No new replies allowed.