| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
OOP Design我试着用面向对象的思想去解决这道问题,
没想到花的时间反而更多;
有没有人想到好的对象设计方法?
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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator