Click here to Skip to main content
15,896,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Programing with out header files Pin
Stefan_Lang16-Dec-13 21:36
Stefan_Lang16-Dec-13 21:36 
Don't you think that if it would be easier without header files, that millions of coders before you hadn't found out about that a long time ago?

The memorization isn't an issue: In C++ the usual way of organizing your code is that you use one header file for the declaration of each class, and one corresponding source file for the implementation of each class. You use the same base name for the header file and the source file, only the suffix is different!

Moreover, you normally use an integrated development environment (IDE), which helps you organize your program, much like a file explorer. It will help you jump from a given variable or type or class in your code directly to the location in your code where it's defined. You really don't need to memorize anything!

The application I work on has more than 3 million lines of code and consists of several thousand files - I don't even try to memorize where everything is! That is what the IDE does for me. And it works: If someone reports a bug I can usually locate the rough area of code where something goes awry within 10-20 minutes - even if I've never seen that code before!
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)

AnswerRe: C++ Programing with out header files Pin
Stefan_Lang15-Dec-13 23:31
Stefan_Lang15-Dec-13 23:31 
GeneralRe: C++ Programing with out header files Pin
Richard MacCutchan16-Dec-13 3:30
mveRichard MacCutchan16-Dec-13 3:30 
AnswerRe: C++ Programing with out header files Pin
tgsb22-Dec-13 22:43
tgsb22-Dec-13 22:43 
QuestionOpenGL - Change Torus color into Red instead Grey Color Pin
M Riaz Bashir15-Dec-13 1:29
M Riaz Bashir15-Dec-13 1:29 
AnswerRe: OpenGL - Change Torus color into Red instead Grey Color Pin
AmbiguousName16-Dec-13 22:32
AmbiguousName16-Dec-13 22:32 
QuestionAllegro Dev C++ program crash Pin
ashutoshrambhal14-Dec-13 23:53
ashutoshrambhal14-Dec-13 23:53 
AnswerRe: Allegro Dev C++ program crash Pin
Richard MacCutchan15-Dec-13 0:38
mveRichard MacCutchan15-Dec-13 0:38 
GeneralRe: Allegro Dev C++ program crash Pin
ashutoshrambhal15-Dec-13 2:46
ashutoshrambhal15-Dec-13 2:46 
GeneralRe: Allegro Dev C++ program crash Pin
Richard MacCutchan15-Dec-13 2:59
mveRichard MacCutchan15-Dec-13 2:59 
QuestionRich edit control and caption Pin
RaymondM14-Dec-13 1:43
RaymondM14-Dec-13 1:43 
SuggestionRe: Rich edit control and caption Pin
Richard MacCutchan15-Dec-13 0:34
mveRichard MacCutchan15-Dec-13 0:34 
AnswerRe: Rich edit control and caption Pin
enhzflep15-Dec-13 3:56
enhzflep15-Dec-13 3:56 
QuestionNON MFC / WINAPI Problem related to Process and Files. Pin
lokesh.mavale13-Dec-13 13:07
lokesh.mavale13-Dec-13 13:07 
QuestionExtract RGB Colors Pin
Django_Untaken13-Dec-13 1:31
Django_Untaken13-Dec-13 1:31 
AnswerRe: Extract RGB Colors Pin
Richard MacCutchan13-Dec-13 1:49
mveRichard MacCutchan13-Dec-13 1:49 
AnswerRe: Extract RGB Colors Pin
CPallini13-Dec-13 3:06
mveCPallini13-Dec-13 3:06 
AnswerRe: Extract RGB Colors Pin
Eugen Podsypalnikov13-Dec-13 3:18
Eugen Podsypalnikov13-Dec-13 3:18 
QuestionC pointer and array question [Resolved] Pin
econy12-Dec-13 20:07
econy12-Dec-13 20:07 
AnswerRe: C pointer and array question Pin
econy12-Dec-13 20:19
econy12-Dec-13 20:19 
AnswerRe: C pointer and array question [Resolved] Pin
Richard MacCutchan12-Dec-13 21:19
mveRichard MacCutchan12-Dec-13 21:19 
AnswerRe: C pointer and array question [Resolved] Pin
Stefan_Lang12-Dec-13 22:42
Stefan_Lang12-Dec-13 22:42 
GeneralRe: C pointer and array question [Resolved] Pin
econy16-Dec-13 9:14
econy16-Dec-13 9:14 
GeneralRe: C pointer and array question [Resolved] Pin
Stefan_Lang16-Dec-13 21:25
Stefan_Lang16-Dec-13 21:25 
AnswerRe: C pointer and array question [Resolved] Pin
Stefan_Lang12-Dec-13 23:14
Stefan_Lang12-Dec-13 23:14 

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.