Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1857 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Help with a C++ question

Thread title: Help with a C++ question
Closed Thread    
    Thread tools Search this thread Display Modes  
09-06-2006, 11:32 PM
#1
DateinaDash is offline DateinaDash
Status: The BidMaster
Join date: Nov 2004
Location: England
Expertise:
Software:
 
Posts: 10,821
iTrader: 0 / 0%
 

DateinaDash is on a distinguished road

  Old  Help with a C++ question

Hi everyone,

Would anyone be able to shed some light on this question? It's based around a popular football management game!

In the game there are various types of people – players, staff (manager/coaches etc), board members (owner/chairman etc) and officials. Some people have multiple roles, such as player-managers. Write basic C++ class declarations for the classes you would use to model this, giving examples of fields and accessors you would expect to see in each of the classes. Explain any key design decisions.

Many thanks in advance!

09-06-2006, 11:52 PM
#2
MaxS is offline MaxS
Status: Senior Member
Join date: Aug 2005
Location: New York
Expertise:
Software:
 
Posts: 825
iTrader: 1 / 100%
 

MaxS is on a distinguished road

  Old

Sounds like we're doing your homework for you.

It's been a very long time since I have programmed C++. Basically, you could look into inheritance and class hierarchy. That should cover it all.

09-07-2006, 12:04 AM
#3
DateinaDash is offline DateinaDash
Status: The BidMaster
Join date: Nov 2004
Location: England
Expertise:
Software:
 
Posts: 10,821
iTrader: 0 / 0%
 

DateinaDash is on a distinguished road

  Old

I can assure you you're not, considering I graduated in July. Thanks.

09-07-2006, 12:05 AM
#4
MaxS is offline MaxS
Status: Senior Member
Join date: Aug 2005
Location: New York
Expertise:
Software:
 
Posts: 825
iTrader: 1 / 100%
 

MaxS is on a distinguished road

  Old

Alright, no worries. As I said, look up inheritance and class hierarchy. It's perfect for what you're going for.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed