Click here to Skip to main content
15,913,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralReading raw data Pin
Anonymous24-Nov-03 7:48
Anonymous24-Nov-03 7:48 
GeneralRe: Reading raw data Pin
John M. Drescher24-Nov-03 8:03
John M. Drescher24-Nov-03 8:03 
GeneralRe: Reading raw data Pin
john john mackey24-Nov-03 11:12
john john mackey24-Nov-03 11:12 
GeneralA simple C question Pin
b_girl24-Nov-03 7:35
b_girl24-Nov-03 7:35 
GeneralRe: A simple C question Pin
markkuk24-Nov-03 7:52
markkuk24-Nov-03 7:52 
GeneralRe: A simple C question Pin
b_girl24-Nov-03 8:11
b_girl24-Nov-03 8:11 
GeneralRe: A simple C question Pin
John M. Drescher24-Nov-03 7:59
John M. Drescher24-Nov-03 7:59 
GeneralRe: A simple C question Pin
noahsarf24-Nov-03 8:11
noahsarf24-Nov-03 8:11 
essentially what you are doing is setting each of your array elements to the address of p; At the end of your loop you have an entire array of addresses to the p value. This is why you print out a bunch of 4's or 5's depending on your loop criteria.

If you are just trying to set the array locations to the value of the integers, then there is no need to use address. create your array as : int suit[4]; this is an array of integers. Now inside the for loop, suit[p]=p; will now set your array entry to the integer value of p and you will receive your expected results from your printf statement.




GeneralRe: A simple C question Pin
b_girl24-Nov-03 8:22
b_girl24-Nov-03 8:22 
GeneralRe: A simple C question Pin
Rick York24-Nov-03 8:25
mveRick York24-Nov-03 8:25 
GeneralRe: A simple C question Pin
Jesse Evans24-Nov-03 8:23
Jesse Evans24-Nov-03 8:23 
GeneralRe: A simple C question Pin
b_girl24-Nov-03 8:27
b_girl24-Nov-03 8:27 
GeneralRe: A simple C question Pin
John R. Shaw24-Nov-03 17:37
John R. Shaw24-Nov-03 17:37 
GeneralTrig and Calculus Functions in C++ Pin
Trurl_24-Nov-03 7:04
Trurl_24-Nov-03 7:04 
GeneralRe: Trig and Calculus Functions in C++ Pin
John M. Drescher24-Nov-03 7:08
John M. Drescher24-Nov-03 7:08 
GeneralRe: Trig and Calculus Functions in C++ Pin
John R. Shaw24-Nov-03 17:45
John R. Shaw24-Nov-03 17:45 
GeneralRe: Trig and Calculus Functions in C++ Pin
Trurl_25-Nov-03 6:42
Trurl_25-Nov-03 6:42 
GeneralRe: Trig and Calculus Functions in C++ Pin
John R. Shaw25-Nov-03 8:37
John R. Shaw25-Nov-03 8:37 
Questionhow to open a listening port using MFC Pin
Dhakad24-Nov-03 6:51
Dhakad24-Nov-03 6:51 
AnswerRe: how to open a listening port using MFC Pin
Ernesto D.24-Nov-03 9:32
Ernesto D.24-Nov-03 9:32 
AnswerRe: how to open a listening port using MFC Pin
BaldwinMartin24-Nov-03 14:52
BaldwinMartin24-Nov-03 14:52 
GeneralRe: how to open a listening port using MFC Pin
Dhakad24-Nov-03 20:52
Dhakad24-Nov-03 20:52 
GeneralRe: how to open a listening port using MFC Pin
BaldwinMartin24-Nov-03 21:00
BaldwinMartin24-Nov-03 21:00 
Generalvc++ 2003 IDE is driving me crazy Pin
DiWa24-Nov-03 6:47
DiWa24-Nov-03 6:47 
GeneralRe: vc++ 2003 IDE is driving me crazy Pin
Joe Woodbury24-Nov-03 8:14
professionalJoe Woodbury24-Nov-03 8:14 

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.