Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get disk model and serial number for the disk Windows is installed on Pin
trønderen21-Sep-23 6:29
trønderen21-Sep-23 6:29 
GeneralRe: How to get disk model and serial number for the disk Windows is installed on Pin
Richard MacCutchan20-Sep-23 22:03
mveRichard MacCutchan20-Sep-23 22:03 
GeneralRe: How to get disk model and serial number for the disk Windows is installed on Pin
jschell21-Sep-23 4:57
jschell21-Sep-23 4:57 
GeneralRe: How to get disk model and serial number for the disk Windows is installed on Pin
trønderen21-Sep-23 6:23
trønderen21-Sep-23 6:23 
AnswerRe: How to get disk model and serial number for the disk Windows is installed on Pin
Dave Kreskowiak20-Sep-23 13:23
mveDave Kreskowiak20-Sep-23 13:23 
AnswerRe: How to get disk model and serial number for the disk Windows is installed on Pin
Randor 20-Sep-23 22:34
professional Randor 20-Sep-23 22:34 
Questionwrite a progrrame create a calculator (using function) Pin
CHIRAG VAJA 202318-Sep-23 20:15
CHIRAG VAJA 202318-Sep-23 20:15 
AnswerRe: write a progrrame create a calculator (using function) Pin
Victor Nijegorodov18-Sep-23 20:26
Victor Nijegorodov18-Sep-23 20:26 
RantRe: write a progrrame create a calculator (using function) Pin
Richard Deeming18-Sep-23 21:23
mveRichard Deeming18-Sep-23 21:23 
AnswerRe: write a progrrame create a calculator (using function) Pin
jschell19-Sep-23 5:49
jschell19-Sep-23 5:49 
QuestionRe: write a progrrame create a calculator (using function) Pin
CPallini19-Sep-23 20:02
mveCPallini19-Sep-23 20:02 
AnswerRe: write a progrrame create a calculator (using function) Pin
Richard MacCutchan19-Sep-23 21:44
mveRichard MacCutchan19-Sep-23 21:44 
GeneralRe: write a progrrame create a calculator (using function) Pin
CPallini19-Sep-23 21:50
mveCPallini19-Sep-23 21:50 
JokeRe: write a progrrame create a calculator (using function) Pin
trønderen21-Sep-23 6:35
trønderen21-Sep-23 6:35 
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 

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.