Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Move Window Pin
YaronNir9-Apr-06 2:28
YaronNir9-Apr-06 2:28 
AnswerRe: Move Window Pin
PJ Arends9-Apr-06 11:14
professionalPJ Arends9-Apr-06 11:14 
AnswerRe: Move Window Pin
ThatsAlok9-Apr-06 19:13
ThatsAlok9-Apr-06 19:13 
Questionint32 = (char1,char2,char3,char4) Pin
big_denny_2009-Apr-06 1:45
big_denny_2009-Apr-06 1:45 
AnswerRe: int32 = (char1,char2,char3,char4) Pin
Hamid_RT9-Apr-06 3:13
Hamid_RT9-Apr-06 3:13 
GeneralRe: int32 = (char1,char2,char3,char4) Pin
big_denny_2009-Apr-06 5:20
big_denny_2009-Apr-06 5:20 
GeneralRe: int32 = (char1,char2,char3,char4) Pin
Hamid_RT9-Apr-06 6:10
Hamid_RT9-Apr-06 6:10 
AnswerRe: int32 = (char1,char2,char3,char4) Pin
Stephen Hewitt9-Apr-06 14:02
Stephen Hewitt9-Apr-06 14:02 
If we convert to string to ASCII (numbers in brackets are decimal):
"1234" -> 0x31(49) 0x32(50) 0x33(51) 0x34(52) 0x00(0)

Now operator, returns its second parameter. i.e. (1st, 2nd) evaluates to 2nd.

So the expression (str[0],str[1],str[2],str[3]) evaluates to (str[1],str[2],str[3]) which evaluates to (str[2],str[3]) which in turn yields (str[3]) - Which is 52.


Steve
Question3D Game Engine Architecture's web Pin
akira329-Apr-06 1:26
akira329-Apr-06 1:26 
AnswerRe: 3D Game Engine Architecture's web Pin
BEamer9-Apr-06 3:07
BEamer9-Apr-06 3:07 
QuestionFile Icon Pin
big_denny_2008-Apr-06 23:38
big_denny_2008-Apr-06 23:38 
AnswerRe: File Icon Pin
Hamid_RT9-Apr-06 0:05
Hamid_RT9-Apr-06 0:05 
AnswerRe: File Icon Pin
RChin9-Apr-06 1:07
RChin9-Apr-06 1:07 
Questionintellisense with directx Pin
blue_rabbit8-Apr-06 20:59
blue_rabbit8-Apr-06 20:59 
AnswerRe: intellisense with directx Pin
Trollslayer8-Apr-06 22:56
mentorTrollslayer8-Apr-06 22:56 
Questionpointer to function in class Pin
blue_rabbit8-Apr-06 20:43
blue_rabbit8-Apr-06 20:43 
AnswerRe: pointer to function in class Pin
Matt Godbolt8-Apr-06 22:43
Matt Godbolt8-Apr-06 22:43 
Questionvc++ Pin
sudeep_br8-Apr-06 15:43
sudeep_br8-Apr-06 15:43 
AnswerRe: vc++ Pin
EvScott8-Apr-06 16:36
EvScott8-Apr-06 16:36 
GeneralRe: vc++ Pin
sudeep_br9-Apr-06 4:31
sudeep_br9-Apr-06 4:31 
GeneralRe: vc++ Pin
EvScott9-Apr-06 5:30
EvScott9-Apr-06 5:30 
GeneralRe: vc++ Pin
sudeep_br9-Apr-06 18:01
sudeep_br9-Apr-06 18:01 
GeneralRe: vc++ Pin
Hamid_RT9-Apr-06 20:04
Hamid_RT9-Apr-06 20:04 
AnswerRe: vc++ Pin
Michael Dunn8-Apr-06 16:38
sitebuilderMichael Dunn8-Apr-06 16:38 
AnswerRe: vc++ Pin
sheshidar9-Apr-06 6:36
sheshidar9-Apr-06 6:36 

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.