Click here to Skip to main content
15,915,044 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Context menu in TreeView control ?? Pin
khan++23-Sep-05 1:27
khan++23-Sep-05 1:27 
GeneralRe: Context menu in TreeView control ?? Pin
Anonymous23-Sep-05 23:09
Anonymous23-Sep-05 23:09 
QuestionMDI without initial window Pin
tooho23-Sep-05 1:01
tooho23-Sep-05 1:01 
AnswerRe: MDI without initial window Pin
prasad_som23-Sep-05 1:56
prasad_som23-Sep-05 1:56 
AnswerRe: MDI without initial window Pin
vikas amin23-Sep-05 1:57
vikas amin23-Sep-05 1:57 
GeneralRe: MDI without initial window Pin
tooho23-Sep-05 3:26
tooho23-Sep-05 3:26 
Questionstd::multimap & std::find() Pin
Themis23-Sep-05 0:06
Themis23-Sep-05 0:06 
AnswerOfftopic Pin
Jörgen Sigvardsson23-Sep-05 0:30
Jörgen Sigvardsson23-Sep-05 0:30 
GeneralRe: Offtopic Pin
Themis23-Sep-05 2:47
Themis23-Sep-05 2:47 
QuestionLinker Error Pin
rajeevktripathi22-Sep-05 23:43
rajeevktripathi22-Sep-05 23:43 
AnswerRe: Linker Error Pin
ThatsAlok23-Sep-05 0:05
ThatsAlok23-Sep-05 0:05 
AnswerRe: Linker Error Pin
MailtoGops23-Sep-05 0:11
MailtoGops23-Sep-05 0:11 
QuestionProgram Deployment Pin
mikobi22-Sep-05 23:19
mikobi22-Sep-05 23:19 
AnswerRe: Program Deployment Pin
Mircea Puiu23-Sep-05 2:52
Mircea Puiu23-Sep-05 2:52 
Questioninitialize stl map in static scope Pin
yccheok22-Sep-05 23:10
yccheok22-Sep-05 23:10 
AnswerRe: initialize stl map in static scope Pin
toxcct22-Sep-05 23:22
toxcct22-Sep-05 23:22 
GeneralRe: initialize stl map in static scope Pin
Cedric Moonen22-Sep-05 23:46
Cedric Moonen22-Sep-05 23:46 
GeneralRe: initialize stl map in static scope Pin
toxcct22-Sep-05 23:52
toxcct22-Sep-05 23:52 
GeneralRe: initialize stl map in static scope Pin
yccheok23-Sep-05 1:28
yccheok23-Sep-05 1:28 
That's is a matter of design. Says you have a MathTeacher class, each math teacher instance is suppose to hold a "multiplication table" member variable. since you are quite sure the "multiplication table" will be same everywhere (you always get 4 when you perform 2x2), it make sense to make the multiplication table as static const scope.

so, instead of having 10000 copies of MathTeacher objects (hence, 10000 copies of "multiplication table" since each teacher is having one copy of table). by having static scope member variable, we can have 10000 copies of teachers, share one copy of math table, which we are sure it will be always constant and never changed.

hope this help.
GeneralRe: initialize stl map in static scope Pin
Laffis23-Sep-05 1:06
Laffis23-Sep-05 1:06 
GeneralRe: initialize stl map in static scope Pin
yccheok23-Sep-05 1:19
yccheok23-Sep-05 1:19 
AnswerRe: initialize stl map in static scope Pin
Tim Smith23-Sep-05 3:58
Tim Smith23-Sep-05 3:58 
AnswerRe: pointer to char array Pin
Eytukan22-Sep-05 23:02
Eytukan22-Sep-05 23:02 
GeneralRe: pointer to char array Pin
sunit523-Sep-05 2:56
sunit523-Sep-05 2:56 
GeneralRe: pointer to char array Pin
ThatsAlok23-Sep-05 17:53
ThatsAlok23-Sep-05 17:53 

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.