Thread: Doing round robin schedule

  1. #1
    Registered User
    Join Date
    Nov 2011
    Location
    Tronoh, Malaysia
    Posts
    2

    Doing round robin schedule

    Please give me some ideas on how to do the round robin scheduler using c++ program.
    Characteristic of the program:
    1. The program should be able to schedule matches from minimum 2 to 10 teams playing.
    2. The program should be able to calculate total referee cost given the referee cost per game inserted by the user.
    3. The same team must not play 2 matches one after another.

    Output of the program should be:
    Doing round robin schedule-26112011005-jpg

  2. #2
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Randomly select 2 teams from a 'set'.
    Check if all the criteria are satisfied.
    Modify the 'set' as required.

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Show us what you've done.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Registered User
    Join Date
    Nov 2011
    Location
    Tronoh, Malaysia
    Posts
    2
    i haven't done anything yet,thats why i'm asking for help to do or someone do for me

  5. #5
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by dinesh93 View Post
    i haven't done anything yet,thats why i'm asking for help to do or someone do for me
    Take a look !

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    So start with some paper and a pencil and write out two teams, then write out all the combinations you can think of.

    Then do the same with 3 teams, and notice what happens.

    Then again with 4 and 5 teams.

    With any luck, you should see some kind of pattern for working out what N+1 teams look like from knowing what N teams look like. At this point, you'll have some understanding of the process involved, and you might be able to formulate some kind of algorithm.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    asking for help to do or someone do for me
    We do not do anything for you. If you do not show some type of attempt within the next few days this thread will be closed. You must show some effort.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (Community Game) Round Robin for C++ [Round 01]
    By phantomotap in forum General Discussions
    Replies: 5
    Last Post: 04-18-2011, 01:07 PM
  2. (Community Game) Planning for Round Robin for C++ [Round 02]
    By phantomotap in forum General Discussions
    Replies: 2
    Last Post: 04-17-2011, 02:39 PM
  3. round-robin
    By 3pid in forum C++ Programming
    Replies: 1
    Last Post: 01-29-2009, 11:13 AM
  4. Round Robin Scheduling using c.
    By eclipt in forum C Programming
    Replies: 8
    Last Post: 12-28-2005, 04:58 PM
  5. round robin algorithm!
    By visham in forum C Programming
    Replies: 9
    Last Post: 10-13-2005, 03:14 AM