Click here to Skip to main content
14,696,762 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: _findfirst and fopen very slow Pin
leon de boer2-Feb-19 1:33
Memberleon de boer2-Feb-19 1:33 
AnswerRe: _findfirst and fopen very slow Pin
Stefan_Lang31-Jan-19 22:27
mveStefan_Lang31-Jan-19 22:27 
AnswerRe: _findfirst and fopen very slow Pin
Joe Woodbury1-Feb-19 6:36
professionalJoe Woodbury1-Feb-19 6:36 
AnswerRe: _findfirst and fopen very slow Pin
cristiapi2-Feb-19 2:13
Membercristiapi2-Feb-19 2:13 
Questionwrite in .xlsx extension excel file using c++ Pin
Member 1413460230-Jan-19 0:49
MemberMember 1413460230-Jan-19 0:49 
AnswerRe: write in .xlsx extension excel file using c++ Pin
Richard MacCutchan30-Jan-19 0:52
mveRichard MacCutchan30-Jan-19 0:52 
AnswerRe: write in .xlsx extension excel file using c++ Pin
leon de boer30-Jan-19 3:09
Memberleon de boer30-Jan-19 3:09 
RantC++ Typedefs Pin
nitrous_00729-Jan-19 5:45
Membernitrous_00729-Jan-19 5:45 
GeneralRe: C++ Typedefs Pin
Richard MacCutchan29-Jan-19 6:41
mveRichard MacCutchan29-Jan-19 6:41 
GeneralRe: C++ Typedefs Pin
David Crow29-Jan-19 7:20
MemberDavid Crow29-Jan-19 7:20 
GeneralRe: C++ Typedefs Pin
Joe Woodbury29-Jan-19 10:45
professionalJoe Woodbury29-Jan-19 10:45 
GeneralRe: C++ Typedefs Pin
CPallini29-Jan-19 11:35
mveCPallini29-Jan-19 11:35 
GeneralRe: C++ Typedefs Pin
Stefan_Lang29-Jan-19 22:16
mveStefan_Lang29-Jan-19 22:16 
typedef is essential in metaprogramming, i. e. when you implement template classes that are supposed to fulfil certain criteria. This allows generic algorithms to specify certain dependant types in their implementation. (most notably, but not only, return types)

Other than that, typedefs and using-declarations[^] can be used to imrpove readability. But these mechanisms should not be overused: I prefer to be able to read where a symbol is coming from rather than a name that may be a local symbol or not.

That said, modern, language-sensitve text editors can show you what's behind a name very easily, maybe even in a tooltip. (and if yours doesn't, go look for a plugin that does)
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralRe: C++ Typedefs Pin
leon de boer30-Jan-19 4:20
Memberleon de boer30-Jan-19 4:20 
QuestionWhere do you place your #includes? Pin
den2k8829-Jan-19 0:49
professionalden2k8829-Jan-19 0:49 
AnswerRe: Where do you place your #includes? Pin
Daniel Pfeffer29-Jan-19 1:32
professionalDaniel Pfeffer29-Jan-19 1:32 
GeneralRe: Where do you place your #includes? Pin
den2k8829-Jan-19 22:12
professionalden2k8829-Jan-19 22:12 
AnswerRe: Where do you place your #includes? Pin
mo149229-Jan-19 3:27
Membermo149229-Jan-19 3:27 
GeneralRe: Where do you place your #includes? Pin
den2k8829-Jan-19 22:10
professionalden2k8829-Jan-19 22:10 
GeneralRe: Where do you place your #includes? Pin
Klaus-Werner Konrad24-Apr-19 5:31
MemberKlaus-Werner Konrad24-Apr-19 5:31 
AnswerRe: Where do you place your #includes? Pin
CPallini29-Jan-19 11:49
mveCPallini29-Jan-19 11:49 
GeneralRe: Where do you place your #includes? Pin
den2k8829-Jan-19 22:07
professionalden2k8829-Jan-19 22:07 
GeneralRe: Where do you place your #includes? Pin
CPallini29-Jan-19 23:07
mveCPallini29-Jan-19 23:07 
AnswerRe: Where do you place your #includes? Pin
Stefan_Lang29-Jan-19 23:28
mveStefan_Lang29-Jan-19 23:28 
AnswerRe: Where do you place your #includes? Pin
leon de boer30-Jan-19 3:26
Memberleon de boer30-Jan-19 3:26 

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.