Click here to Skip to main content
15,887,241 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPointer indirection Pin
Calin Negru14-Sep-23 3:01
Calin Negru14-Sep-23 3:01 
AnswerRe: Pointer indirection Pin
Mircea Neacsu14-Sep-23 3:06
Mircea Neacsu14-Sep-23 3:06 
GeneralRe: Pointer indirection Pin
Calin Negru14-Sep-23 4:13
Calin Negru14-Sep-23 4:13 
GeneralRe: Pointer indirection Pin
Mircea Neacsu14-Sep-23 4:31
Mircea Neacsu14-Sep-23 4:31 
GeneralRe: Pointer indirection Pin
Calin Negru14-Sep-23 9:40
Calin Negru14-Sep-23 9:40 
GeneralRe: Pointer indirection Pin
jschell14-Sep-23 10:50
jschell14-Sep-23 10:50 
GeneralRe: Pointer indirection Pin
Calin Negru14-Sep-23 20:55
Calin Negru14-Sep-23 20:55 
GeneralRe: Pointer indirection Pin
k505414-Sep-23 4:32
mvek505414-Sep-23 4:32 
Correct, I think. A simple test program would confirm that, but I'm not feeling the urge.

But if you need more than two or three levels of indirection, then the problem space should lead to sensible variable naming. That and intelligent comments should make your intent clear. And, of course, you've got typedefs or C++ using statements to help reduce the brain cramp that I find multiple indirection sometimes brings. If you're using C++, you also have references which might help reduce the (apparent) levels of indirection going on.
Keep Calm and Carry On

AnswerRe: Pointer indirection Pin
Richard MacCutchan14-Sep-23 5:43
mveRichard MacCutchan14-Sep-23 5:43 
GeneralRe: Pointer indirection Pin
Calin Negru14-Sep-23 9:10
Calin Negru14-Sep-23 9:10 
GeneralRe: Pointer indirection Pin
Richard MacCutchan14-Sep-23 21:12
mveRichard MacCutchan14-Sep-23 21:12 
Question[edited] collision response in a RTS Pin
Calin Negru28-Aug-23 6:49
Calin Negru28-Aug-23 6:49 
AnswerRe: [edited] collision response in a RTS Pin
Randor 28-Aug-23 8:48
professional Randor 28-Aug-23 8:48 
GeneralRe: [edited] collision response in a RTS Pin
Calin Negru29-Aug-23 0:41
Calin Negru29-Aug-23 0:41 
GeneralRe: [edited] collision response in a RTS Pin
Randor 29-Aug-23 5:24
professional Randor 29-Aug-23 5:24 
AnswerRe: [edited] collision response in a RTS Pin
Gerry Schmitz30-Aug-23 10:52
mveGerry Schmitz30-Aug-23 10:52 
GeneralRe: [edited] collision response in a RTS Pin
Calin Negru31-Aug-23 6:05
Calin Negru31-Aug-23 6:05 
GeneralRe: [edited] collision response in a RTS Pin
Gerry Schmitz1-Sep-23 6:26
mveGerry Schmitz1-Sep-23 6:26 
GeneralRe: [edited] collision response in a RTS Pin
Calin Negru2-Sep-23 7:35
Calin Negru2-Sep-23 7:35 
GeneralRe: [edited] collision response in a RTS Pin
Gerry Schmitz3-Sep-23 5:30
mveGerry Schmitz3-Sep-23 5:30 
QuestionDSA Pin
ZAID razvi25-Aug-23 0:50
ZAID razvi25-Aug-23 0:50 
AnswerRe: DSA Pin
CPallini25-Aug-23 1:36
mveCPallini25-Aug-23 1:36 
GeneralRe: DSA Pin
ZAID razvi25-Aug-23 1:54
ZAID razvi25-Aug-23 1:54 
GeneralRe: DSA Pin
CPallini25-Aug-23 2:10
mveCPallini25-Aug-23 2:10 
GeneralRe: DSA Pin
ZAID razvi25-Aug-23 4:57
ZAID razvi25-Aug-23 4:57 

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.