a volunteer master is hard to find. i am a beginner, and i think u are also one. we can share each others info.s and supplies if you like. i need to say that i am a real beginner. i still use using namespace std; before main. i still dont know why people don't use it lol. however i am willing to improve myself at summer after a fresh and empty 2 weeks. if u are intrested, pm me and we ll add each other on facebook or sth. maybe we will start a competition between us to make things more fun:)
using namespaces will increase the application size, it will bloat the hell out of it. It is good to keep away from using namespace std when programming console applications unless you are using more than half of the namespace apart from that keep away from that.
Please use using namespace std; unless you are using a 3rd party library that has foolishly used the same name as the standard library.
This is bad advice.
There are many generic names in the std namespace (such as "count") which are very prone to have conflicts. Remember that when you do usingnamespace std you get everything in the namespace, even stuff you didn't know about.
The whole point of having it separated into another namespace is to avoid name collisions. By grabbing the entire namespace you undo that entirely.
For small projects it's fine, but I wouldn't make a habit out of it.
SpaceWorm wrote:
using namespaces will increase the application size, it will bloat the hell out of it
Well maybe not bloat it too much but will increase the size
No. It will not make any difference at all. The code will compile to the exact same thing regardless of whether you use usingnamespace std; or not. It's purely a style/organizational thing.
SpaceWorm wrote:
why use whole namespace when you need 1 or 2 of the actual namespace calls.
Disch, I finally resolved my issue. You are right the binary does not bloat. I never use namespaces never even used it when learning basics so I did not research much into it. I never use namespaces even in large projects. I assumed using namespace was like importing a library in java\python.
I do not program both the languages but my friend told me so I assumed the same.