Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: delete a directory Pin
Hamid_RT15-Feb-07 7:07
Hamid_RT15-Feb-07 7:07 
QuestionImage Processing Pin
Raj220315-Feb-07 5:00
Raj220315-Feb-07 5:00 
AnswerRe: Image Processing Pin
toxcct15-Feb-07 5:04
toxcct15-Feb-07 5:04 
AnswerRe: Image Processing Pin
Maximilien15-Feb-07 5:51
Maximilien15-Feb-07 5:51 
GeneralRe: Image Processing Pin
Raj220317-Feb-07 7:30
Raj220317-Feb-07 7:30 
AnswerRe: Image Processing Pin
Hamid_RT15-Feb-07 7:07
Hamid_RT15-Feb-07 7:07 
Questionintializing 2d array Pin
ikbahrian15-Feb-07 5:00
ikbahrian15-Feb-07 5:00 
AnswerRe: intializing sd array [modified] Pin
toxcct15-Feb-07 5:03
toxcct15-Feb-07 5:03 
Brutal method:
for (int i = 0; i < 256; i++) {
    for (int j = 0; j < 256; j++) {
        test_array[i][j] = 0;
    }
}

wiser one:
::memset(test_array, 0, sizeof(unsigned short int)*256*256);


[edit]
-- modified at 12:08 Thursday 15th February, 2007
Better one:
unsigned short int test_array[256][256] = {0};


thanks David
[/edit]


GeneralRe: intializing sd array Pin
David Crow15-Feb-07 5:30
David Crow15-Feb-07 5:30 
GeneralRe: intializing sd array Pin
toxcct15-Feb-07 5:32
toxcct15-Feb-07 5:32 
GeneralRe: intializing sd array Pin
ikbahrian15-Feb-07 5:31
ikbahrian15-Feb-07 5:31 
GeneralRe: intializing sd array Pin
toxcct15-Feb-07 5:33
toxcct15-Feb-07 5:33 
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 
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 

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.