| | |
Plz Some1 Reply!!!
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2005
Posts: 6
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Jun 2005
Posts: 6
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Jun 2005
Posts: 6
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Jun 2005
Posts: 6
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Jun 2005
Posts: 6
Reputation:
Solved Threads: 0
. 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.
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.
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
•
•
Join Date: Jun 2005
Posts: 6
Reputation:
Solved Threads: 0
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.
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.
![]() |
Similar Threads
- can someone plz help me with this? (Visual Basic 4 / 5 / 6)
- Install windows xp on windows server?? help? (Windows NT / 2000 / XP)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- Urgent.....Dynamic Changes.... (JavaScript / DHTML / AJAX)
- Error While Declaring Crytal Report Object (VB.NET)
- Display Problems..wont change resolution or colour (Troubleshooting Dead Machines)
- configuring samba networking on windows (Kernels and Modules)
Other Threads in the C++ Forum
- Previous Thread: need help in interfacing my programme
- Next Thread: GUI using C++ - urgent
| Thread Tools | Search this Thread |
api array based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






