Click here to Skip to main content
15,843,865 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionpointer and switch Pin
kbury29-Oct-09 9:18
kbury29-Oct-09 9:18 
AnswerRe: pointer and switch Pin
«_Superman_»29-Oct-09 9:21
professional«_Superman_»29-Oct-09 9:21 
GeneralRe: pointer and switch Pin
kbury29-Oct-09 9:24
kbury29-Oct-09 9:24 
AnswerRe: pointer and switch Pin
CPallini29-Oct-09 11:58
mveCPallini29-Oct-09 11:58 
GeneralRe: pointer and switch Pin
kbury30-Oct-09 3:31
kbury30-Oct-09 3:31 
GeneralRe: pointer and switch Pin
CPallini30-Oct-09 3:52
mveCPallini30-Oct-09 3:52 
GeneralRe: pointer and switch Pin
kbury30-Oct-09 10:37
kbury30-Oct-09 10:37 
GeneralRe: pointer and switch Pin
CPallini30-Oct-09 11:43
mveCPallini30-Oct-09 11:43 
kbury wrote:
printf("\nWhat is %d",r1);

change to
printf("\nWhat is %d", *r1);



kbury wrote:
r1 = 2 + rand() % 11;

change to
*r1 = 2 + rand() % 11;


The above steps, however just fix compiler errors...I don't know if the semantic will be correct.

BTW what about a good C language programming book?
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: pointer and switch Pin
kbury30-Oct-09 11:57
kbury30-Oct-09 11:57 
GeneralRe: pointer and switch Pin
CPallini30-Oct-09 12:00
mveCPallini30-Oct-09 12:00 
GeneralRe: pointer and switch Pin
kbury30-Oct-09 12:05
kbury30-Oct-09 12:05 
GeneralRe: pointer and switch Pin
kbury30-Oct-09 12:06
kbury30-Oct-09 12:06 
GeneralRe: pointer and switch Pin
CPallini30-Oct-09 12:23
mveCPallini30-Oct-09 12:23 
Questionhow to fit the result application from WinExec() in a splitter window? Pin
Member 333413529-Oct-09 9:01
Member 333413529-Oct-09 9:01 
AnswerRe: how to fit the result application from WinExec() in a splitter window? Pin
«_Superman_»29-Oct-09 9:13
professional«_Superman_»29-Oct-09 9:13 
GeneralRe: how to fit the result application from WinExec() in a splitter window? Pin
Member 333413530-Oct-09 3:26
Member 333413530-Oct-09 3:26 
QuestionConverting data from TextBox (String^) to string Pin
iMikki29-Oct-09 8:22
iMikki29-Oct-09 8:22 
AnswerRe: Converting data from TextBox (String^) to string Pin
transoft29-Oct-09 8:32
transoft29-Oct-09 8:32 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 8:44
iMikki29-Oct-09 8:44 
AnswerRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 8:48
professional«_Superman_»29-Oct-09 8:48 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 9:05
iMikki29-Oct-09 9:05 
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 9:10
professional«_Superman_»29-Oct-09 9:10 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 9:16
iMikki29-Oct-09 9:16 
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 9:17
professional«_Superman_»29-Oct-09 9:17 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 9:20
iMikki29-Oct-09 9:20 

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.