Search:

Type: Posts; User: Unini

Search: Search took 0.01 seconds.

  1. Thread: Structure help

    by Unini
    Replies
    4
    Views
    834

    I couldn add variables inside a header file. I...

    I couldn add variables inside a header file.
    I moved it outside the header file into a cpp file and now it works.
    I should have looked a t my sig more :D
  2. Thread: Structure help

    by Unini
    Replies
    4
    Views
    834

    No, that isn't it. Im defining this in a header...

    No, that isn't it.
    Im defining this in a header file, does that make any differnece??
  3. Thread: Structure help

    by Unini
    Replies
    4
    Views
    834

    Structure help

    Why doesn't my structure work, I did the same thing as the tutorial on this site!

    struct ship
    {
    int x_pos;
    int y_pos;
    };

    ship player;
    player.x_pos = 256;
Results 1 to 3 of 3