Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is mfc still popular now? Pin
David Crow24-Sep-07 5:06
David Crow24-Sep-07 5:06 
GeneralRe: Is mfc still popular now? Pin
led mike24-Sep-07 5:28
led mike24-Sep-07 5:28 
GeneralRe: Is mfc still popular now? Pin
David Crow24-Sep-07 6:08
David Crow24-Sep-07 6:08 
GeneralRe: Is mfc still popular now? Pin
Mark Salsbery24-Sep-07 8:54
Mark Salsbery24-Sep-07 8:54 
GeneralRe: Is mfc still popular now? Pin
El Corazon24-Sep-07 10:52
El Corazon24-Sep-07 10:52 
GeneralRe: Is mfc still popular now? Pin
Nelek24-Sep-07 21:49
protectorNelek24-Sep-07 21:49 
GeneralRe: Is mfc still popular now? Pin
led mike25-Sep-07 5:06
led mike25-Sep-07 5:06 
GeneralRe: Is mfc still popular now? Pin
Blake Miller28-Sep-07 4:30
Blake Miller28-Sep-07 4:30 
GeneralRe: Is mfc still popular now? Pin
bornunique24-Sep-07 3:10
bornunique24-Sep-07 3:10 
GeneralRe: Is mfc still popular now? Pin
jhwurmbach24-Sep-07 3:44
jhwurmbach24-Sep-07 3:44 
QuestionRe: Is mfc still popular now? Pin
David Crow24-Sep-07 4:04
David Crow24-Sep-07 4:04 
GeneralRe: Is mfc still popular now? Pin
led mike24-Sep-07 4:48
led mike24-Sep-07 4:48 
AnswerRe: Is mfc still popular now? Pin
Nishad S24-Sep-07 3:15
Nishad S24-Sep-07 3:15 
GeneralRe: Is mfc still popular now? Pin
bornunique24-Sep-07 3:24
bornunique24-Sep-07 3:24 
AnswerRe: Is mfc still popular now? Pin
Hamid_RT24-Sep-07 3:36
Hamid_RT24-Sep-07 3:36 
GeneralRe: Is mfc still popular now? Pin
Cedric Moonen24-Sep-07 3:53
Cedric Moonen24-Sep-07 3:53 
GeneralRe: Is mfc still popular now? Pin
Hamid_RT24-Sep-07 4:15
Hamid_RT24-Sep-07 4:15 
GeneralRe: Is mfc still popular now? Pin
jhwurmbach24-Sep-07 4:32
jhwurmbach24-Sep-07 4:32 
AnswerRe: Is mfc still popular now? Pin
bob1697224-Sep-07 6:01
bob1697224-Sep-07 6:01 
AnswerRe: Is mfc still popular now? Pin
Mark Salsbery24-Sep-07 7:04
Mark Salsbery24-Sep-07 7:04 
AnswerRe: Is mfc still popular now? Pin
Signal-926-Sep-07 15:07
Signal-926-Sep-07 15:07 
Questionconst int * Pin
Shraddha Gautam24-Sep-07 2:27
Shraddha Gautam24-Sep-07 2:27 
AnswerRe: const int * Pin
James R. Twine24-Sep-07 2:36
James R. Twine24-Sep-07 2:36 
AnswerRe: const int * Pin
KarstenK24-Sep-07 2:39
mveKarstenK24-Sep-07 2:39 
AnswerRe: const int * Pin
zakkas248324-Sep-07 19:35
zakkas248324-Sep-07 19:35 
i Think u r not clear from above two ans so i m explaing u ...

Pointer To Const
syntex:

int const *ptr;
or
const int *ptr;

that means they are pointer to const int. so we can't change the value of they are pointing. we can change what they r pointing....

for example:

int i = 10;
int b = 20;
int const *ptr = & i;
(*ptr)++ ; // will give error
ptr = & b ; // OK

Const pointer:

syntex :

int * const ptr1;

it is const pointer so what it is pointing is const so we must initialize at the time of declaration

so synetx is like
int * const ptr1 = & someintegervarible;

for example:

int i = 10;
int b = 20;
int * const ptr1 = & i; //required initialization
(*ptr1)++ ;//OK
ptr1 = & b; // Error

we also have

const pointer to const :

syntex :

int const * const ptr2 = & i; // required initialization
or
const int * const ptr2 = & i; // required initialization

Neither address which that pointer is pointing nor the value that pointer pointing will change.

Hiren Thakkar

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.