Plz Some1 Reply!!!

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2005
Posts: 6
Reputation: karimkabbani is an unknown quantity at this point 
Solved Threads: 0
karimkabbani karimkabbani is offline Offline
Newbie Poster

combinations

 
0
  #1
Jun 15th, 2005
Hi... im kinda new to c++ but here goes. i made a class called team and one called game. i also made dynamic arrays of each. i figured out how to calculate number of games considering the number of teams. 3 teams, 3 games- 4 teams,6games- 5t,10g - 6t,15g- etc... . The class game has two member variables of type team.
My question is: how can I define each game ?
my guessing is to use nested loops.... but im just blocked!
i would appreciate any help.
thanks.

almost 4got, i also made an array of distinct random numbers called random, so for game[0] i should say

game[0].setTame1[random[0]]

game[0].setTame2[random[1]]

random[0] and random[1] are two distinct numbers from 0 to the numberOfTeams.

and i should make sure that two teams do no play twice , and of course that each time does not have a game with itself!

Thanks a lot.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 6
Reputation: karimkabbani is an unknown quantity at this point 
Solved Threads: 0
karimkabbani karimkabbani is offline Offline
Newbie Poster

some sort of combinations

 
0
  #2
Jun 16th, 2005
Hi... im kinda new to c++ but here goes. i made a class called team and one called game. i also made dynamic arrays of each. i figured out how to calculate number of games considering the number of teams. 3 teams, 3 games- 4 teams,6games- 5t,10g - 6t,15g- etc... . The class game has two member variables of type team.
My question is: how can I define each game ?
my guessing is to use nested loops.... but im just blocked!
i would appreciate any help.
thanks.

almost 4got, i also made an array of distinct random numbers called random, so for game[0] i should say

game[0].setTame1[random[0]]

game[0].setTame2[random[1]]

random[0] and random[1] are two distinct numbers from 0 to the numberOfTeams.

and i should make sure that two teams do no play twice , and of course that each time does not have a game with itself!

Thanks a lot.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 6
Reputation: karimkabbani is an unknown quantity at this point 
Solved Threads: 0
karimkabbani karimkabbani is offline Offline
Newbie Poster

Need help in soccer league program. More specificly, to do random scheduel of games

 
0
  #3
Jun 16th, 2005
Hi... im kinda new to c++ but here goes. i made a class called team and one called game. i also made dynamic arrays of each. i figured out how to calculate number of games considering the number of teams. 3 teams, 3 games- 4 teams,6games- 5t,10g - 6t,15g- etc... . The class game has two member variables of type team.
My question is: how can I define each game ?
my guessing is to use nested loops.... but im just blocked!
i would appreciate any help.
thanks.

almost 4got, i also made an array of distinct random numbers called random, so for game[0] i should say

game[0].setTame1[random[0]]

game[0].setTame2[random[1]]

random[0] and random[1] are two distinct numbers from 0 to the numberOfTeams.

and i should make sure that two teams do no play twice , and of course that each time does not have a game with itself!

Thanks a lot.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 6
Reputation: karimkabbani is an unknown quantity at this point 
Solved Threads: 0
karimkabbani karimkabbani is offline Offline
Newbie Poster

random combination

 
0
  #4
Jun 18th, 2005
Hi... im kinda new to c++ but here goes. i made a class called team and one called game. i also made dynamic arrays of each. i figured out how to calculate number of games considering the number of teams. 3 teams, 3 games- 4 teams,6games- 5t,10g - 6t,15g- etc... . The class game has two member variables of type team.
My question is: how can I define each game ?
my guessing is to use nested loops.... but im just blocked!
i would appreciate any help.
thanks.

almost 4got, i also made an array of distinct random numbers called random, so for game[0] i should say

game[0].setTame1[random[0]]

game[0].setTame2[random[1]]

random[0] and random[1] are two distinct numbers from 0 to the numberOfTeams.

and i should make sure that two teams do no play twice , and of course that each time does not have a game with itself!

Thanks a lot.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 6
Reputation: karimkabbani is an unknown quantity at this point 
Solved Threads: 0
karimkabbani karimkabbani is offline Offline
Newbie Poster

Plz Some1 Reply!!!

 
0
  #5
Jun 21st, 2005
. i made a class called team and one called game. i also made dynamic arrays of each. i figured out how to calculate number of games considering the number of teams. 3 teams, 3 games- 4 teams,6games- 5t,10g - 6t,15g- etc... . The class game has two member variables of type team.
My question is: how can I define each game ?
my guessing is to use nested loops.... but im just blocked!
i would appreciate any help.
thanks.

almost 4got, i also made an array of distinct random numbers called random, so for game[0] i should say

game[0].setTame1[random[0]]

game[0].setTame2[random[1]]

random[0] and random[1] are two distinct numbers from 0 to the numberOfTeams.

and i should make sure that two teams do no play twice , and of course that each time does not have a game with itself!

Thanks a lot.
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,349
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 237
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: Plz Some1 Reply!!!

 
0
  #6
Jun 21st, 2005
I'm merging all these threads. Please don't bump them like this. Show an attempt rather than waiting for someone else to do it for you.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 6
Reputation: karimkabbani is an unknown quantity at this point 
Solved Threads: 0
karimkabbani karimkabbani is offline Offline
Newbie Poster

HELP IN MAKING A COMBINATION OF GAMES BETWEEN DIFFERENT TEAMS. ''League" .

 
0
  #7
Jun 21st, 2005
i made a class called team and one called game. i also made dynamic arrays of each. i figured out how to calculate number of games considering the number of teams. 3 teams, 3 games- 4 teams,6games- 5t,10g - 6t,15g- etc... . The class game has two member variables of type team.
My question is: how can I define each game ?
my guessing is to use nested loops.... but im just blocked!
i would appreciate any help.
thanks.

almost 4got, i also made an array of distinct random numbers called random, so for game[0] i should say

game[0].setTame1[random[0]]

game[0].setTame2[random[1]]

random[0] and random[1] are two distinct numbers from 0 to the numberOfTeams.

and i should make sure that two teams do no play twice , and of course that each time does not have a game with itself!

Thanks a lot.
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,349
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 237
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: Plz Some1 Reply!!!

 
0
  #8
Jun 22nd, 2005
Continued merging...
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC