Click here to Skip to main content
15,901,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: 'Should I use using namespace std; in my code?' Pin
Niklas L30-Sep-11 1:13
Niklas L30-Sep-11 1:13 
GeneralRe: 'Should I use using namespace std; in my code?' Pin
Stefan_Lang30-Sep-11 1:50
Stefan_Lang30-Sep-11 1:50 
GeneralRe: 'Should I use using namespace std; in my code?' Pin
Niklas L30-Sep-11 2:28
Niklas L30-Sep-11 2:28 
GeneralRe: 'Should I use using namespace std; in my code?' Pin
Albert Holguin30-Sep-11 8:25
professionalAlbert Holguin30-Sep-11 8:25 
GeneralRe: 'Should I use using namespace std; in my code?' Pin
CPallini30-Sep-11 22:13
mveCPallini30-Sep-11 22:13 
GeneralRe: 'Should I use using namespace std; in my code?' Pin
Stefan_Lang2-Oct-11 22:17
Stefan_Lang2-Oct-11 22:17 
GeneralRe: 'Should I use using namespace std; in my code?' Pin
CPallini2-Oct-11 22:35
mveCPallini2-Oct-11 22:35 
GeneralRe: 'Should I use using namespace std; in my code?' Pin
Stefan_Lang3-Oct-11 0:42
Stefan_Lang3-Oct-11 0:42 
I've always thought that it's mostly the stuff that isn't also visible in the code, that makes compiler errors so hard to read, whereas the namespace symbols help separate the mangled symbols into managable bits that can be easier to understand.

Personally, when I look at unfamiliar code and try to locate a problem, seeing std:: or the like helps me exclude parts that I know I don't need to bother about. Similarly, when I try to understand what a particular piece of code does, I often start with the bits that call out 'STL' to me, because that is what I have the least trouble to grasp. In short, to me the namespace qualifiers within the code are more helpful than obstructive.

Of course, it might depend on the code you're looking at. If you're faced with types like
C++
std::list<std::pair<MyClassA, MyClassB>, MyAllocator<std::pair<MyClassA, MyClassB> >::const_iterator

then you're in need of a typedef or two Wink | ;)
AnswerRe: 'Should I use using namespace std; in my code?' Pin
Chris Losinger30-Sep-11 7:47
professionalChris Losinger30-Sep-11 7:47 
AnswerRe: 'Should I use using namespace std; in my code?' Pin
Stephen Hewitt30-Sep-11 20:06
Stephen Hewitt30-Sep-11 20:06 
GeneralRe: 'Should I use using namespace std; in my code?' Pin
Stefan_Lang2-Oct-11 22:20
Stefan_Lang2-Oct-11 22:20 
QuestionPrinting Class Library PrintRotatedText Pin
DanYELL29-Sep-11 16:41
DanYELL29-Sep-11 16:41 
AnswerRe: Printing Class Library PrintRotatedText Pin
Roger Allen30-Sep-11 6:23
Roger Allen30-Sep-11 6:23 
GeneralRe: Printing Class Library PrintRotatedText Pin
DanYELL30-Sep-11 6:35
DanYELL30-Sep-11 6:35 
Questioncall weka classes Pin
salv0329-Sep-11 5:52
salv0329-Sep-11 5:52 
QuestionRe: call weka classes Pin
David Crow29-Sep-11 7:51
David Crow29-Sep-11 7:51 
AnswerRe: call weka classes Pin
Chris Losinger29-Sep-11 9:26
professionalChris Losinger29-Sep-11 9:26 
AnswerRe: WEKA is written in Java, for JAVA not c, and is a collection of Java classes However you can Pin
Software_Developer29-Sep-11 9:51
Software_Developer29-Sep-11 9:51 
QuestionHow to resize Tab Control?? Pin
antonio34328-Sep-11 22:42
antonio34328-Sep-11 22:42 
AnswerRe: How to resize Tab Control?? Pin
TheGreatAndPowerfulOz29-Sep-11 7:51
TheGreatAndPowerfulOz29-Sep-11 7:51 
GeneralRe: How to resize Tab Control?? Pin
antonio34329-Sep-11 12:49
antonio34329-Sep-11 12:49 
GeneralRe: How to resize Tab Control?? Pin
TheGreatAndPowerfulOz29-Sep-11 19:46
TheGreatAndPowerfulOz29-Sep-11 19:46 
GeneralRe: How to resize Tab Control?? Pin
antonio34329-Sep-11 21:49
antonio34329-Sep-11 21:49 
GeneralRe: How to resize Tab Control?? Pin
TheGreatAndPowerfulOz30-Sep-11 8:24
TheGreatAndPowerfulOz30-Sep-11 8:24 
QuestionLoading ICON Pin
Benjamin Bruno28-Sep-11 22:36
Benjamin Bruno28-Sep-11 22:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.