Like Tree1Likes
  • 1 Post By manasij7479

Doing round robin schedule

This is a discussion on Doing round robin schedule within the C++ Programming forums, part of the General Programming Boards category; Please give me some ideas on how to do the round robin scheduler using c++ program. Characteristic of the program: ...

  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:
    Name:  26112011005.jpg
Views: 667
Size:  57.0 KB

  2. #2
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    Randomly select 2 teams from a 'set'.
    Check if all the criteria are satisfied.
    Modify the 'set' as required.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  3. #3
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,667
    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
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    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 !
    Salem likes this.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,592
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    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, 10:13 AM
  4. Round Robin Scheduling using c.
    By eclipt in forum C Programming
    Replies: 8
    Last Post: 12-28-2005, 03:58 PM
  5. round robin algorithm!
    By visham in forum C Programming
    Replies: 9
    Last Post: 10-13-2005, 03:14 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21