Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: You are missing quite a lot of braces here Pin
CPallini18-Nov-07 22:24
mveCPallini18-Nov-07 22:24 
GeneralRe: You are missing quite a lot of braces here Pin
jhwurmbach18-Nov-07 22:35
jhwurmbach18-Nov-07 22:35 
GeneralRe: You are missing quite a lot of braces here Pin
CPallini18-Nov-07 22:46
mveCPallini18-Nov-07 22:46 
GeneralRe: You are missing quite a lot of braces here [modified] Pin
jhwurmbach18-Nov-07 22:48
jhwurmbach18-Nov-07 22:48 
GeneralOh, that isn't correct Pin
CPallini18-Nov-07 22:54
mveCPallini18-Nov-07 22:54 
GeneralRe: Oh, that isn't correct Pin
jhwurmbach18-Nov-07 23:01
jhwurmbach18-Nov-07 23:01 
GeneralRe: You are missing quite a lot of braces here Pin
CPallini18-Nov-07 23:21
mveCPallini18-Nov-07 23:21 
GeneralRe: You are missing quite a lot of braces here Pin
jhwurmbach18-Nov-07 23:27
jhwurmbach18-Nov-07 23:27 
Better.
Not as expressive, though.

Plus it might or might not be faster.
E.g. the function could need a very large temporary array in its algorithm.
This would then enlarge the callers array, without shrinking it, like a copy would do.

Also, it is not as easy to not touch the callers array in case of the call not succeding.



Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
Douglas Adams, "Dirk Gently's Holistic Detective Agency"

GeneralRe: You are missing quite a lot of braces here Pin
CPallini18-Nov-07 23:37
mveCPallini18-Nov-07 23:37 
GeneralRe: You are missing quite a lot of braces here Pin
David Crow16-Nov-07 11:04
David Crow16-Nov-07 11:04 
GeneralRe: You are missing quite a lot of braces here Pin
jhwurmbach18-Nov-07 22:20
jhwurmbach18-Nov-07 22:20 
GeneralRe: You are missing quite a lot of braces here Pin
David Crow19-Nov-07 3:17
David Crow19-Nov-07 3:17 
QuestionHow to block CD/DVD Pin
VC_RYK15-Nov-07 21:50
VC_RYK15-Nov-07 21:50 
AnswerRe: How to block CD/DVD Pin
David Crow16-Nov-07 5:35
David Crow16-Nov-07 5:35 
GeneralRe: How to block CD/DVD Pin
VC_RYK18-Nov-07 19:37
VC_RYK18-Nov-07 19:37 
GeneralRe: How to block CD/DVD Pin
David Crow19-Nov-07 3:28
David Crow19-Nov-07 3:28 
QuestionHow to release unused memory at Runtime? Pin
bankey101015-Nov-07 20:53
bankey101015-Nov-07 20:53 
AnswerRe: How to release unused memory at Runtime? Pin
Cedric Moonen15-Nov-07 21:09
Cedric Moonen15-Nov-07 21:09 
Questionbreaking up an int in c programming Pin
neodeaths15-Nov-07 20:18
neodeaths15-Nov-07 20:18 
AnswerRe: breaking up an int in c programming Pin
codeII15-Nov-07 20:35
codeII15-Nov-07 20:35 
AnswerRe: breaking up an int in c programming Pin
Malli_S15-Nov-07 20:57
Malli_S15-Nov-07 20:57 
GeneralRe: breaking up an int in c programming Pin
chandu00415-Nov-07 21:08
chandu00415-Nov-07 21:08 
GeneralRe: breaking up an int in c programming Pin
codeII15-Nov-07 21:40
codeII15-Nov-07 21:40 
GeneralRe: breaking up an int in c programming Pin
CPallini15-Nov-07 21:48
mveCPallini15-Nov-07 21:48 
AnswerRe: breaking up an int in c programming Pin
KarstenK15-Nov-07 21:12
mveKarstenK15-Nov-07 21:12 

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.