How to declare 2D array in managed C++
Posted Date Unknown stephin Francis Antony 2 Comments

hi
Can anybody suggest how  to declare 2D array dynamically in managed C++



See All Responses Below...
Author
Message Rating
Posted on: 18/09/2013
Refer this example code

array< Int32^ ,2>^ x=gcnew array< Int32^ ,2>(4,4);
for(i=0;i<4;i++)
{
   x[0,0]=1;
  ...............
 ................
}
Posted on: 18/09/2013
Can you try to follow a similar fashion which is there for the unmanaged code form the link below..

http://www.tektips.in/how-to-use-multi-dimensional-c-plus-plus-arrays.aspx
 
Please dont forget to post the answes as somebody else might be waiting for an answers similar to this..

Tom
Share this page across other social networking sites



Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Comments
   Design  HTML
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

TekTipsDownload
GateExam
Academic Projects
TekTipsExperts



 
Site optimized for IE7, 1280 X 768 and above. Copyright © 2010 - 2018 KTS InfoTech
Site Developed Using KTS WebCloud