Thread: Help with listing numbers in order

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    59

    Help with listing numbers in order

    Hi all,

    Can someone help me or show me a tutorial for listing numbers
    kinda like a league table,

    for example,



    team1 49
    team2 40
    team3 38
    team4 36

    Etc,

    I have already setup how to work out the points, the only thing im
    struggling with is how to list them like above....

    Any help would be great.

    Chers Guys

    Boontune

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    How are your numbers stored at present? Post some code so we can see where your at.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146

    Re: Help with listing numbers in order

    Until you post some more details, here's my suggestion:
    Code:
               
    cout << "team1    49" << endl
    	<< "team2    40" << endl
    	<< "team3    38" << endl
    	<< "team4    36" << endl;
    I do believe the above code is the simplest solution to your problem

    Seriously though, tell us some more so we can help.
    FAQ

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about random numbers
    By Kempelen in forum C Programming
    Replies: 2
    Last Post: 07-02-2008, 06:28 AM
  2. Help with Rational Numbers (C++)
    By cloudjc in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2008, 04:03 PM
  3. Putting in order scanned numbers?
    By Tarento in forum C Programming
    Replies: 5
    Last Post: 06-02-2006, 02:25 PM
  4. Prime Numbers
    By cmangel518 in forum C++ Programming
    Replies: 13
    Last Post: 04-30-2002, 11:51 PM
  5. display numbers in order
    By mike in forum C++ Programming
    Replies: 2
    Last Post: 09-24-2001, 09:16 PM