Click here to Skip to main content
15,892,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hex digit format Pin
S.W.4-Sep-04 15:41
S.W.4-Sep-04 15:41 
GeneralRe: hex digit format Pin
David Crow4-Sep-04 16:37
David Crow4-Sep-04 16:37 
GeneralRe: hex digit format Pin
Archer2825-Sep-04 15:51
Archer2825-Sep-04 15:51 
QuestionWhy doesn't this work? Pin
Nemok4-Sep-04 10:25
Nemok4-Sep-04 10:25 
AnswerRe: Why doesn't this work? Pin
Jörgen Sigvardsson4-Sep-04 10:55
Jörgen Sigvardsson4-Sep-04 10:55 
GeneralRe: Why doesn't this work? Pin
Nemok4-Sep-04 11:11
Nemok4-Sep-04 11:11 
GeneralRe: Why doesn't this work? Pin
Jörgen Sigvardsson4-Sep-04 11:13
Jörgen Sigvardsson4-Sep-04 11:13 
GeneralC++ question. Pin
WREY4-Sep-04 9:55
WREY4-Sep-04 9:55 
If I have the following:

struct Node
{
// various types
} *(*pNode)[7]; // ptr to a 2-dimensional array

===========================

In the ctor I have the following initialization procedure:

for(short i=0; i<7; ++i)
{
*(*(*pNode)+i) = NULL;
}

It doesn't work, and neither does various other efforts.

Later I want to do this:

**pNode = new Node;
(**pNode)->Lvl = 1;

etc.

==============================

If the array is not initialized, no object can be placed in it.

There is a reason why I DON'T want to define the pointer to the array as shown below (or something similar):

*pNode[5][7];

How can I initialized the array using the first example?

Thanks for any insight. I appreciate it.

Smile | :)

William

Fortes in fide et opere!
GeneralRe: C++ question. Pin
cmk4-Sep-04 11:46
cmk4-Sep-04 11:46 
GeneralRe: C++ question. Pin
WREY4-Sep-04 12:20
WREY4-Sep-04 12:20 
GeneralRe: C++ question. Pin
WREY5-Sep-04 3:11
WREY5-Sep-04 3:11 
GeneralRe: C++ question. Pin
tomerab5-Sep-04 4:36
tomerab5-Sep-04 4:36 
GeneralRe: C++ question. Pin
WREY5-Sep-04 6:02
WREY5-Sep-04 6:02 
GeneralRe: C++ question. Pin
tomerab5-Sep-04 19:31
tomerab5-Sep-04 19:31 
GeneralTreeView set check with InsertItem Pin
LukeV4-Sep-04 7:00
LukeV4-Sep-04 7:00 
GeneralMultiple Dialog Pin
Grahamfff4-Sep-04 5:59
Grahamfff4-Sep-04 5:59 
GeneralRe: Multiple Dialog Pin
Anonymous4-Sep-04 8:10
Anonymous4-Sep-04 8:10 
GeneralRe: Multiple Dialog Pin
Grahamfff5-Sep-04 8:48
Grahamfff5-Sep-04 8:48 
GeneralUNICODE problem. Pin
Irek Zielinski4-Sep-04 5:43
Irek Zielinski4-Sep-04 5:43 
GeneralRe: UNICODE problem. Pin
Michael Dunn5-Sep-04 6:14
sitebuilderMichael Dunn5-Sep-04 6:14 
GeneralRe: UNICODE problem. Pin
Irek Zielinski5-Sep-04 10:27
Irek Zielinski5-Sep-04 10:27 
GeneralCDC GetWindowExt WinXP-&gt;Win98 Pin
FriendOfAsherah4-Sep-04 3:47
FriendOfAsherah4-Sep-04 3:47 
Generalopening a wav file in programming visual c++ Pin
sysrye4-Sep-04 3:26
sysrye4-Sep-04 3:26 
GeneralRe: opening a wav file in programming visual c++ Pin
Joel Holdsworth4-Sep-04 5:34
Joel Holdsworth4-Sep-04 5:34 
GeneralRe: opening a wav file in programming visual c++ Pin
Anonymous4-Sep-04 14:29
Anonymous4-Sep-04 14:29 

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.