Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

OOP Design

Posted by 200593141 at 2007-08-15 07:34:57 on Problem 3339
我试着用面向对象的思想去解决这道问题,
没想到花的时间反而更多;
有没有人想到好的对象设计方法?
My Design:
class player :
public :
         void Input() ;
         void description() ;
private:
          int No ;
          char Name[21] ;
          char Role ;
          int Age ;
end class player ;

class Record :
public :
         void Input() ;
         void Result() ;
         void Ajust( int array[], const int &Size ) ;
private:
         bool Select() ;
         void FilterDown( int array[], int start, const int &Size ) ;
         int dequeue( int array[], int &Size )
         	int Defenders[22], Dcounter ;
         int Midfielders[22], Mcounter ;
	int Strikers[22], Scounter ;
	int Goalkeepers[22], Gcounter ;
	int Chosen[11] ;
	int pattern[3] ;
	int caption ;
	Player Team[22] ;  
end class Record ;  


Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator