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

C / C++ / MFC

 
GeneralNeed your suggestion !! Pin
rowdy_vc++30-Jan-08 20:07
rowdy_vc++30-Jan-08 20:07 
GeneralRe: Need your suggestion !! Pin
CPallini30-Jan-08 23:49
mveCPallini30-Jan-08 23:49 
GeneralRe: Need your suggestion !! Pin
Rajesh R Subramanian31-Jan-08 2:23
professionalRajesh R Subramanian31-Jan-08 2:23 
Generalhelp me Pin
gentleguy30-Jan-08 20:02
gentleguy30-Jan-08 20:02 
GeneralRe: help me Pin
Cedric Moonen30-Jan-08 20:05
Cedric Moonen30-Jan-08 20:05 
GeneralRe: help me Pin
king'ori30-Jan-08 20:13
king'ori30-Jan-08 20:13 
GeneralRe: help me Pin
Hamid_RT30-Jan-08 21:37
Hamid_RT30-Jan-08 21:37 
GeneralRe: help me Pin
gentleguy30-Jan-08 22:05
gentleguy30-Jan-08 22:05 
no, this is what i just studied for dynamic multiple array...the code is here....


nt n,m;
double c[n][m] = NULL;
double * a[] = NULL;
double * b[] = NULL;

cin >> n;
cin>>m;
b[] = new double[m];
a[] = new double[n];

for (int i=0; i>>n; i++)
{
a[i] =(double) rand()/RAND_MAX;

}

for (int j=0; j<m; j++)<br="" mode="hold">{
a[j] =(double) rand()/RAND_MAX;
}

for (int k=0;k<m;k++)>

for (int kk=0;kk<n;kk++)>
{
if (k==0)
c[k][kk] = a[k];
else
c[k][kk] = b[kk];
}

cout <<"\n";
delete [] a;
a = NULL;
}

this is what i created a 2 D dynamic array...but the problem is there...how to create a 2D dynamic array?

thanks

Li Zhiyuan

5/10/2006

GeneralRe: help me Pin
Iain Clarke, Warrior Programmer30-Jan-08 22:55
Iain Clarke, Warrior Programmer30-Jan-08 22:55 
GeneralRe: help me Pin
gentleguy30-Jan-08 23:18
gentleguy30-Jan-08 23:18 
GeneralRe: help me Pin
Iain Clarke, Warrior Programmer30-Jan-08 23:22
Iain Clarke, Warrior Programmer30-Jan-08 23:22 
GeneralRe: help me Pin
David Crow31-Jan-08 3:10
David Crow31-Jan-08 3:10 
Questioncan anybody help me out..... Pin
philiptabraham30-Jan-08 19:44
philiptabraham30-Jan-08 19:44 
AnswerRe: can anybody help me out..... Pin
Steve Echols30-Jan-08 19:49
Steve Echols30-Jan-08 19:49 
GeneralWindows Service (.Net) for C++ application Pin
CodingLover30-Jan-08 18:53
CodingLover30-Jan-08 18:53 
GeneralStretchBlt function Pin
rp_suman30-Jan-08 18:44
rp_suman30-Jan-08 18:44 
GeneralRe: StretchBlt function Pin
Steve Echols30-Jan-08 19:54
Steve Echols30-Jan-08 19:54 
QuestionHow can play .dat files with the help of MCIWnd? Pin
Le@rner30-Jan-08 18:43
Le@rner30-Jan-08 18:43 
AnswerRe: How can play .dat files with the help of MCIWnd? Pin
Hamid_RT30-Jan-08 19:32
Hamid_RT30-Jan-08 19:32 
GeneralRe: How can play .dat files with the help of MCIWnd? Pin
Le@rner30-Jan-08 20:16
Le@rner30-Jan-08 20:16 
GeneralRe: How can play .dat files with the help of MCIWnd? Pin
Hamid_RT30-Jan-08 21:33
Hamid_RT30-Jan-08 21:33 
GeneralNeed help using List Control Pin
SnaKeBeD30-Jan-08 18:12
SnaKeBeD30-Jan-08 18:12 
GeneralRe: Need help using List Control Pin
Hamid_RT30-Jan-08 19:35
Hamid_RT30-Jan-08 19:35 
GeneralRe: Need help using List Control Pin
David Crow31-Jan-08 3:16
David Crow31-Jan-08 3:16 
GeneralLinker Output .dll and .lib Pin
ForNow30-Jan-08 17:59
ForNow30-Jan-08 17:59 

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.