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

C / C++ / MFC

 
GeneralRe: intializing sd array Pin
Gary R. Wheeler17-Feb-07 3:58
Gary R. Wheeler17-Feb-07 3:58 
GeneralRe: intializing sd array Pin
toxcct17-Feb-07 6:29
toxcct17-Feb-07 6:29 
AnswerRe: intializing 2d array Pin
David Crow15-Feb-07 5:36
David Crow15-Feb-07 5:36 
GeneralRe: intializing 2d array Pin
toxcct15-Feb-07 5:40
toxcct15-Feb-07 5:40 
GeneralRe: intializing 2d array Pin
David Crow15-Feb-07 6:02
David Crow15-Feb-07 6:02 
GeneralRe: intializing 2d array Pin
toxcct15-Feb-07 6:08
toxcct15-Feb-07 6:08 
GeneralRe: intializing 2d array Pin
David Crow15-Feb-07 6:16
David Crow15-Feb-07 6:16 
GeneralRe: intializing 2d array Pin
Mark Salsbery15-Feb-07 6:03
Mark Salsbery15-Feb-07 6:03 
toxcct wrote:
does this set all the array cells to 0, or only the 1st one ? I have a doubt


"If a class has a constructor, arrays of that class are initialized by a constructor. If there are
fewer items in the initializer list than elements in the array, the default constructor is used
for the remaining elements. If no default constructor is defined for the class, the initializer
list must be complete — that is, there must be one initializer for each element in the array.
"

But why doesn't this use the "default constructor" ...

unsigned short test;

Smile | :)

Great job, team. Head back to base for debriefing and cocktails.

GeneralRe: intializing 2d array Pin
toxcct15-Feb-07 6:07
toxcct15-Feb-07 6:07 
GeneralRe: intializing 2d array Pin
Mark Salsbery15-Feb-07 6:09
Mark Salsbery15-Feb-07 6:09 
AnswerRe: intializing 2d array Pin
prasad_som15-Feb-07 6:05
prasad_som15-Feb-07 6:05 
GeneralRe: intializing 2d array Pin
Michael Dunn15-Feb-07 20:52
sitebuilderMichael Dunn15-Feb-07 20:52 
Questioncounting the print Pin
shakumar_2215-Feb-07 4:45
shakumar_2215-Feb-07 4:45 
JokeRe: counting the print [modified] Pin
toxcct15-Feb-07 4:59
toxcct15-Feb-07 4:59 
GeneralRe: counting the print Pin
Stephen Hewitt15-Feb-07 14:03
Stephen Hewitt15-Feb-07 14:03 
GeneralRe: counting the print Pin
toxcct15-Feb-07 20:17
toxcct15-Feb-07 20:17 
AnswerRe: counting the print Pin
David Crow15-Feb-07 5:34
David Crow15-Feb-07 5:34 
QuestionDestruction Order Pin
baerten15-Feb-07 3:59
baerten15-Feb-07 3:59 
AnswerRe: Destruction Order Pin
Gary R. Wheeler17-Feb-07 4:19
Gary R. Wheeler17-Feb-07 4:19 
QuestionRepainting in Win32 (WM_PAINT issues) Pin
deville7515-Feb-07 3:54
deville7515-Feb-07 3:54 
AnswerRe: Drawing Graph using GDI Pin
Cedric Moonen15-Feb-07 4:03
Cedric Moonen15-Feb-07 4:03 
GeneralRe: Drawing Graph using GDI Pin
deville7515-Feb-07 6:28
deville7515-Feb-07 6:28 
AnswerRe: Repainting in Win32 (WM_PAINT issues) Pin
Mark Salsbery15-Feb-07 6:17
Mark Salsbery15-Feb-07 6:17 
GeneralRe: Repainting in Win32 (WM_PAINT issues) Pin
deville7515-Feb-07 6:27
deville7515-Feb-07 6:27 
GeneralRe: Repainting in Win32 (WM_PAINT issues) Pin
Mark Salsbery15-Feb-07 6:32
Mark Salsbery15-Feb-07 6:32 

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.