hi ya,
ok i think i kinda know what u want...the sample code you've given is a little abstract :) but...
//this is creating an Array of 10 int's, with the array name var1
int[] var1=new int[10];
//now setting a value to one of the array elements...
void SetElement(int element, int value)
{
var1[element]=value;
}
//now to display an array element..
void GetElement(int element)
{
cout<<"Var1["<<element<<"] contains the value "<<var1[element];
//i think this is right might be ...<<var1[element].ToString
//OR do you mean you want to display 'properties' or ..members
//like a class would? eg...var1.
--
Message posted via
http://www.dotnetmonster.com