Click here to Skip to main content
15,886,137 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: pointer to char array Pin
FarPointer23-Sep-05 1:22
FarPointer23-Sep-05 1:22 
QuestionA very urgent problem Pin
momer22-Sep-05 22:17
momer22-Sep-05 22:17 
QuestionCryptEncrypt and CryptDecrypt functions of CryptoApi problems Pin
naeemnimi22-Sep-05 21:49
naeemnimi22-Sep-05 21:49 
AnswerRe: CryptEncrypt and CryptDecrypt functions of CryptoApi problems Pin
Elmue6-Sep-10 9:51
Elmue6-Sep-10 9:51 
Questioni need help to fix the histogram.plz Pin
davidcooler22-Sep-05 21:26
davidcooler22-Sep-05 21:26 
JokeRe: i need help to fix the histogram.plz Pin
khan++22-Sep-05 21:43
khan++22-Sep-05 21:43 
GeneralRe: i need help to fix the histogram.plz Pin
David Crow23-Sep-05 3:46
David Crow23-Sep-05 3:46 
AnswerRe: i need help to fix the histogram.plz Pin
David Crow23-Sep-05 3:32
David Crow23-Sep-05 3:32 
QuestionHow to place the child Dialogs on TaskBar???? Pin
G.Radhakrishna22-Sep-05 20:48
G.Radhakrishna22-Sep-05 20:48 
AnswerRe: How to place the child Dialogs on TaskBar???? Pin
prasad_som22-Sep-05 21:17
prasad_som22-Sep-05 21:17 
Questionrespond message Pin
Member 216100422-Sep-05 20:41
Member 216100422-Sep-05 20:41 

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.