Click here to Skip to main content
15,844,364 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionfile path Pin
amit.code27-Jun-06 1:22
amit.code27-Jun-06 1:22 
AnswerRe: file path Pin
FarPointer27-Jun-06 1:28
FarPointer27-Jun-06 1:28 
GeneralRe: file path Pin
amit.code27-Jun-06 2:24
amit.code27-Jun-06 2:24 
AnswerRe: file path Pin
Hamid_RT27-Jun-06 2:27
Hamid_RT27-Jun-06 2:27 
Questionpeer to peer file sharing Pin
jalsa G27-Jun-06 1:08
jalsa G27-Jun-06 1:08 
AnswerRe: peer to peer file sharing Pin
Hamid_RT27-Jun-06 2:52
Hamid_RT27-Jun-06 2:52 
QuestionAllocating a Multidimensional Array Pin
Richard Andrew x6427-Jun-06 1:06
professionalRichard Andrew x6427-Jun-06 1:06 
AnswerRe: Allocating a Multidimensional Array [modified] Pin
Viorel.27-Jun-06 2:32
Viorel.27-Jun-06 2:32 
I think if you declare a pointer in this manner:

CHAR (*Z3)[10];

then you can assign any bi-direction array having 10 columns:

Z3 = new CHAR[15][10];
. . .
Z3 = new CHAR[50][10];
. . .
CHAR tab[30][10];
Z3 = tab;

It is easy to access an element:

I = Z3[2][7];

This approach can be used for multi-dimensional arrays too:
CHAR (*Z4)[10][30] = new CHAR[15][10][30];
int k = Z4[1][2][3];

Since for indexing the compiler does not need to know the first size of the arrays, it can be a variable:

Z4 = new CHAR[m][10][30];

GeneralRe: Allocating a Multidimensional Array Pin
Richard Andrew x6427-Jun-06 4:54
professionalRichard Andrew x6427-Jun-06 4:54 
AnswerRe: Allocating a Multidimensional Array Pin
Hamid_RT27-Jun-06 3:15
Hamid_RT27-Jun-06 3:15 
GeneralRe: Allocating a Multidimensional Array Pin
Richard Andrew x6427-Jun-06 4:56
professionalRichard Andrew x6427-Jun-06 4:56 
Questionftp link library in VC++? Pin
usman_07027-Jun-06 0:57
usman_07027-Jun-06 0:57 
QuestionXml Pin
vasusree27-Jun-06 0:30
vasusree27-Jun-06 0:30 
AnswerRe: Xml Pin
Taka Muraoka27-Jun-06 0:49
Taka Muraoka27-Jun-06 0:49 
GeneralRe: Xml Pin
vasusree27-Jun-06 1:04
vasusree27-Jun-06 1:04 
GeneralRe: Xml [modified] Pin
FarPointer27-Jun-06 1:32
FarPointer27-Jun-06 1:32 
GeneralRe: Xml Pin
Taka Muraoka27-Jun-06 1:51
Taka Muraoka27-Jun-06 1:51 
Questionproblem with string table Pin
sach!!27-Jun-06 0:29
sach!!27-Jun-06 0:29 
AnswerRe: problem with string table Pin
Don Box27-Jun-06 0:46
Don Box27-Jun-06 0:46 
GeneralRe: problem with string table [modified] Pin
Viorel.27-Jun-06 0:54
Viorel.27-Jun-06 0:54 
AnswerRe: problem with string table Pin
sach!!27-Jun-06 1:07
sach!!27-Jun-06 1:07 
GeneralRe: problem with string table Pin
Viorel.27-Jun-06 2:14
Viorel.27-Jun-06 2:14 
GeneralRe: problem with string table Pin
sach!!27-Jun-06 2:31
sach!!27-Jun-06 2:31 
AnswerRe: problem with string table Pin
Hamid_RT27-Jun-06 2:28
Hamid_RT27-Jun-06 2:28 
AnswerRe: problem with string table Pin
sach!!27-Jun-06 3:24
sach!!27-Jun-06 3:24 

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.