Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: C# -- List.add help  (Read 3430 times)

0 Members and 1 Guest are viewing this topic.

liambiscuit

    Topic Starter


    Hopeful

    C# -- List.add help
    « on: April 27, 2009, 03:53:36 PM »
    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

    " When the rich wage war its the Poor who die "
            Linkin Park



    Whoever said that nothing is impossible has obviously never tried to slam a revolving door. -- Lauren

    You cannot buy your friends but you can buy them pizza - AzureBlade49