Smikket's C++ Tutorial 4 - using namespace std;

preview_player
Показать описание
After covering #include we move on to the next thing down the line, using namespace. This can be a challenging topic for some who are new to programming. Keeping this in mind, I have come up with a semi-weird analogy as to what is going on with using namespace in C++.

When we type using namespace std; We are implementing the standard name space. We can think of the namespace like we think of bacteria that is visible through a circular "window" or "scope". We can think of the boundaries of the view as physical boundaries in which no bacteria can go in or out of. Similarly, the namespace can be considered a window in which very important code that is essential for running C++ behind the scenes is stored. The compiler can distinguish between this pre-coded code stored in namespace and some new code that you or I might type in Eclipse. The standard namespace is basically a tool that the compiler uses in order to not get confused. Robot stuff.
Рекомендации по теме
Комментарии
Автор

I have tomorrow c++ exam this help me a lot
Thank you really

asmakhalaf
Автор

haha!! that was quick thanks!!

I finished @ 0:37

mariojwhitejr
welcome to shbcf.ru