Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionfile path Pin
amit.code27-Jun-06 0:22
amit.code27-Jun-06 0:22 
AnswerRe: file path Pin
FarPointer27-Jun-06 0:28
FarPointer27-Jun-06 0:28 
GeneralRe: file path Pin
amit.code27-Jun-06 1:24
amit.code27-Jun-06 1:24 
AnswerRe: file path Pin
Hamid_RT27-Jun-06 1:27
Hamid_RT27-Jun-06 1:27 
Questionpeer to peer file sharing Pin
jalsa G27-Jun-06 0:08
jalsa G27-Jun-06 0:08 
AnswerRe: peer to peer file sharing Pin
Hamid_RT27-Jun-06 1:52
Hamid_RT27-Jun-06 1:52 
QuestionAllocating a Multidimensional Array Pin
Richard Andrew x6427-Jun-06 0:06
professionalRichard Andrew x6427-Jun-06 0:06 
AnswerRe: Allocating a Multidimensional Array [modified] Pin
Viorel.27-Jun-06 1:32
Viorel.27-Jun-06 1: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 3:54
professionalRichard Andrew x6427-Jun-06 3:54 
AnswerRe: Allocating a Multidimensional Array Pin
Hamid_RT27-Jun-06 2:15
Hamid_RT27-Jun-06 2:15 
GeneralRe: Allocating a Multidimensional Array Pin
Richard Andrew x6427-Jun-06 3:56
professionalRichard Andrew x6427-Jun-06 3:56 
Questionftp link library in VC++? Pin
usman_07026-Jun-06 23:57
usman_07026-Jun-06 23:57 
QuestionXml Pin
vasusree26-Jun-06 23:30
vasusree26-Jun-06 23:30 
AnswerRe: Xml Pin
Taka Muraoka26-Jun-06 23:49
Taka Muraoka26-Jun-06 23:49 
GeneralRe: Xml Pin
vasusree27-Jun-06 0:04
vasusree27-Jun-06 0:04 
GeneralRe: Xml [modified] Pin
FarPointer27-Jun-06 0:32
FarPointer27-Jun-06 0:32 
GeneralRe: Xml Pin
Taka Muraoka27-Jun-06 0:51
Taka Muraoka27-Jun-06 0:51 
Questionproblem with string table Pin
sach!!26-Jun-06 23:29
sach!!26-Jun-06 23:29 
AnswerRe: problem with string table Pin
Don Box26-Jun-06 23:46
Don Box26-Jun-06 23:46 
GeneralRe: problem with string table [modified] Pin
Viorel.26-Jun-06 23:54
Viorel.26-Jun-06 23:54 
AnswerRe: problem with string table Pin
sach!!27-Jun-06 0:07
sach!!27-Jun-06 0:07 
GeneralRe: problem with string table Pin
Viorel.27-Jun-06 1:14
Viorel.27-Jun-06 1:14 
GeneralRe: problem with string table Pin
sach!!27-Jun-06 1:31
sach!!27-Jun-06 1:31 
AnswerRe: problem with string table Pin
Hamid_RT27-Jun-06 1:28
Hamid_RT27-Jun-06 1:28 
AnswerRe: problem with string table Pin
sach!!27-Jun-06 2:24
sach!!27-Jun-06 2: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.