Click here to Skip to main content
15,915,752 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hard question (maybe) Pin
#hackC++25-Apr-06 8:56
#hackC++25-Apr-06 8:56 
GeneralRe: Hard question (maybe) Pin
Nick_Kisialiou25-Apr-06 9:05
Nick_Kisialiou25-Apr-06 9:05 
GeneralRe: Hard question (maybe) Pin
David Crow25-Apr-06 9:15
David Crow25-Apr-06 9:15 
QuestionHelp plz Pin
big_denny_20025-Apr-06 8:15
big_denny_20025-Apr-06 8:15 
AnswerRe: Help plz Pin
toxcct25-Apr-06 8:16
toxcct25-Apr-06 8:16 
AnswerRe: Help plz Pin
Michael Dunn25-Apr-06 8:31
sitebuilderMichael Dunn25-Apr-06 8:31 
QuestionArray's again Pin
#hackC++25-Apr-06 7:35
#hackC++25-Apr-06 7:35 
AnswerRe: Array's again Pin
toxcct25-Apr-06 7:46
toxcct25-Apr-06 7:46 
#hackC++ wrote:
const size_t array = 3;
int ca[array];


1. you cannot do this. you must use either macros or dynamic memory allocation.


#hackC++ wrote:
cout << ca << endl;


this prints ca which is a pointer to the first int which compounds the array, so what you get is actually the address at which the array has been allocated...
if you want to print each elements in the array, iterate over it.
QuestionRe: Array's again Pin
#hackC++25-Apr-06 7:50
#hackC++25-Apr-06 7:50 
AnswerRe: Array's again Pin
toxcct25-Apr-06 7:52
toxcct25-Apr-06 7:52 
GeneralRe: Array's again Pin
Maxwell Chen25-Apr-06 7:51
Maxwell Chen25-Apr-06 7:51 
AnswerRe: Array's again Pin
Roland Pibinger25-Apr-06 7:53
Roland Pibinger25-Apr-06 7:53 
GeneralRe: Array's again Pin
toxcct25-Apr-06 7:56
toxcct25-Apr-06 7:56 
AnswerRe: Array's again Pin
Kharfax25-Apr-06 7:48
Kharfax25-Apr-06 7:48 
GeneralRe: Array's again Pin
toxcct25-Apr-06 7:56
toxcct25-Apr-06 7:56 
GeneralRe: Array's again Pin
#hackC++25-Apr-06 7:57
#hackC++25-Apr-06 7:57 
GeneralRe: Array's again Pin
toxcct25-Apr-06 8:14
toxcct25-Apr-06 8:14 
GeneralRe: Array's again Pin
David Crow25-Apr-06 8:42
David Crow25-Apr-06 8:42 
AnswerRe: Array's again Pin
Michael Dunn25-Apr-06 8:33
sitebuilderMichael Dunn25-Apr-06 8:33 
QuestionCapturing Registry Key name,value,Status Pin
kiranin25-Apr-06 7:32
kiranin25-Apr-06 7:32 
Questionregular MFC DLL with OCX control does not show dialog Pin
alferx125-Apr-06 7:02
alferx125-Apr-06 7:02 
AnswerRe: regular MFC DLL with OCX control does not show dialog Pin
alferx125-Apr-06 7:09
alferx125-Apr-06 7:09 
QuestionPainting bad issues (GDI) Pin
Rafael Fernández López25-Apr-06 6:47
Rafael Fernández López25-Apr-06 6:47 
AnswerSOLVED Pin
Rafael Fernández López25-Apr-06 8:30
Rafael Fernández López25-Apr-06 8:30 
QuestionArrays Pin
#hackC++25-Apr-06 6:01
#hackC++25-Apr-06 6:01 

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.