I haved moved from VB to C, from C to C++,Now from C++ to C#.
In VB you can make an array of types eg:
type Position
X as Integer
Y as Integer
end type
dim Positions[100] as Position
Positions[1].X = Positions[1].X + 1
How would i go about doing somthing like this in C#.
Loading
Jan MontanoPosted Jul 31, 2007, 1:01 AM
Basically, I'll just introduce it in a struct or a class.
public struct Position
{
}
Position[] pos = new Position[5];
pos[1].x = 5;