http://msdn2.microsoft.com/en-us/library...
In c#,,how to declare a structure of array,,and how to access them,,tnx?
The code is something like :
int[ ] myInts = New int[5]
This would decalre and instantiate an array with 6 positions (arrays in C# are 0 based). To access elements, simply do
myInts[2] = 42 // assign value to 3rd pos
result = myInts[3] // assign value in4th position to variable
Here is a link to a great site for C# stuff :
http://www.c-sharpcorner.com/UploadFile/...
Good luck :)
buy flowers
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment