c++ gurus plz help

basara318

Senior member
Jul 15, 2000
496
0
0
hi there
i am writing a project that simulates olympics skating, basically it takes in 2 values m and n
where m= # of team and n= # of couples.
now i have to simulate a skater, which has attirbutes coupleid, teamid repressnting which couple and team he belongs to.
my question is how exactly do i do that if i have to adhere to Object oriented design?? i have a skate class written already, with the coupleid and teamid as private data members. but i dunno how to make each skater pick its couple and team

any help would be greatly appreciated
 

Pakaderm

Senior member
Mar 8, 2001
519
0
0
Please be a bit more specific. What exactly is the program suppose to do?

Why don't you make a class Skater which takes the two variables (team, couple) in the constructor and have it set the data members. What else does it need to do?

-Pakaderm