I sometimes see people code like std::cin and stuff and say that it's bad to use
"using namespace std;"
A C++ namespace is not simply extra syntax and/or overhead, it's a system/mechanism within the language that is designed to prevent name collisions. The std namespace is enormous, every compiler-provided variable/constant/function is contained within it. When you say [icode]using namespace std;[/icode], you make all of those names visible to your … Read More
[B]>>The only time you need to use the & for call-by-reference is when you are -declaring- a function and when you are -defining- a function, you -do not- need the & when calling the function.[/B] This is only [B]partially[/B] true. There are 2 ways to "call by reference". There is … Read More
Edited by Fbody: n/a