The type or namespace name could not be found [duplicate]

This question already has answers here: Getting “type or namespace name could not be found” but everything seems ok? (44 answers) Closed 7 years ago. I have a C# solution with several projects in Visual Studio 2010. One is a test project (I’ll call it “PrjTest“), the other is a Windows Forms Application project (I’ll … Read more

Why is “using namespace std;” considered bad practice?

I’ve been told by others that writing using namespace std; in code is wrong, and that I should use std::cout and std::cin directly instead. Why is using namespace std; considered a bad practice? Is it inefficient or does it risk declaring ambiguous variables (variables that share the same name as a function in std namespace)? … Read more