Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to solve the collision

How to solve the collision

Scheduled Pinned Locked Moved C#
comhelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harry
    wrote on last edited by
    #1

    This is a problem of a collision , in a sport meeting ,there are two parts, each part have some events , two pars will be placed at the some time, the problem is that if someone will take part in several kinds of races, but the two parts’ items will be placed at the same time, how to solve this problem. I built this software for a collage, if you know how to solve this problem ,please tell me . My msn:yobboboy@msn.com. Thank you! Always do you best,what you plant you will harvest later!

    M 1 Reply Last reply
    0
    • H harry

      This is a problem of a collision , in a sport meeting ,there are two parts, each part have some events , two pars will be placed at the some time, the problem is that if someone will take part in several kinds of races, but the two parts’ items will be placed at the same time, how to solve this problem. I built this software for a collage, if you know how to solve this problem ,please tell me . My msn:yobboboy@msn.com. Thank you! Always do you best,what you plant you will harvest later!

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #2

      harry~ wrote: I built this software for a collage, if you know how to solve this problem ,please tell me . Well, in general, one idea is to make an array of time slots. Let's say the events are every 15 minutes. So you have an array for each each person that, when they sign up for an event, fills in however long each event takes, starting at the appropriate 15 minute indexed interval. Then, when they sign up for another event, check the array to see if there's a time overlap. You probably also need to take into account the time it takes to leave one event and get to another, so you can't have someone sign up for an event that ends at 1:30 and another that starts at 1:30, because they can't get to the next event in time! Marc MyXaml Advanced Unit Testing YAPO

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups