1.

Solve : C# -- List.add help?

Answer»

I have a list of points that I wish to start ADDING points to -- so how would I do it?

I KNOW how to use one, but I always get an error upon runtime... I believe I included enough.

--Liam

P.S. I'm using C#.NET if that makes a a difference.
Code: [Select] bulcount++; //adding one to the bullet count, since the action is triggered at space-press
double X = 0, y = 0; //creating our doubles
//White space is good
x = Math.Atan(MS.X - v.X); /* Getting the ANGLE
y = Math.Atan(MS.Y - v.Y); */ for the two coordinates
//MORE WHITE SPACE!
bulvecs.Add(new point((int)x, (int)y)); //adding the list, get an error upon runtime



Discussion

No Comment Found