data structures

Discussion in 'C++' started by dflatt, Aug 31, 2010.

  1. dflatt

    dflatt New Member

    Joined:
    Aug 31, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I can't decide what data structure to use for a program I'm making.

    the program I'm making is a football table, the variables used so far are;
    string team;
    int played = 0, goalsfor = 0, goalsagainst = 0, goaldiff = 0, win = 0, draw = 0, lose = 0, points = 0;

    I was originally thinking of using a vector as I can resize it when I set it up. the table is organised by the points initialy and in the event of a tie goal difference is used.

    I was thinking of using quicksort to organise it.

    any advice?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice