Home > Back-end >  C compiler's default constructor argument output for a bunch of Numbers
C compiler's default constructor argument output for a bunch of Numbers

Time:09-17

 class Course 
{
Private:
String cno;
String cname.
String ccollege;
String cdepartment;
Int cxuefen;
String coursetype;//basic data
String cteachername; Generate////teacher dynamically generated
String cbanhao;
String cclass;
Int CZXS;
Int czhouci;
String time [2];
Int allcapacity;
Int sycapacity;
Int PCJ;
Int QMCJ;
Int ZZCJ;
The string's;//the dynamically generated
//vector CXK;
//int csno;//course students student id
Vector Csnov;//course students list

Map m;
Public:
Course (string a and string b, c string, the string d, int, e string f, string g="no", string h="no", string I="no", int j=0, int k=0, string l="no", string m="no", int n=50, int o=50, int p=0, int q=0, int r=0, string s="");
Course () {}
String getcno () {return cno; }
Void setcno (string a) {cno=a; }
String getcname () {return cname; }
Void setcname (string a) {cname=a; }
String getccollege () {return ccollege; }
Void setccollege (string a) {ccollege=a; }
String getcdepartment () {return cdepartment; }
Void setcdepartment (string a) {cdepartment=a; }
Int getcxuefen () {return cxuefen; }
Void setcxuefen (int a) {cxuefen=a; }
String getcoursetype () {return coursetype; }
Void setcoursetype (string a) {coursetype=a; }//
String getcteacher () {return cteachername; }
Void setcteacher (string a) {cteachername=a; }
String getcbanhao () {return cbanhao; }
Void setcbanhao (string a) {cbanhao=a; }
String getcclass () {return cclass; }
Void setcclass (string a) {cclass=a; }
Int getczxs () {return CZXS; }
Void setczxs (int a) {CZXS=a; }
Int getczhouci () {return czhouci; }
Void setczhouci (int a) {czhouci=a; }
String gettime1 () {return time [0]; }
{void settime1 (string a) time [0]=a; }
String gettime2 () {return time [1]. }
{void settime2 (string a) time [1]=a; }
Int getallcapacity () {return allcapacity; }
Void setallcapacity (int a) {allcapacity=a; }
Int getsycapacity () {return sycapacity; }
Void setsycapacity (int a) {sycapacity=a; }
Int getpcj () {return PCJ; }
Void setpcj (int a) {PCJ=a; }
Int getqmcj () {return QMCJ; }
Void setqmcj (int a) {QMCJ=a; }
Int getzzcj () {return ZZCJ; }
Void setzzcj (int a) {ZZCJ=a; }
String getsee () {return see; }
Void setsee (string a) {see=a; }
{/* string getkehao (int a) return CXK [a]. Kehao. }
{string getbanhao (int a) return CXK [a]. Banhao; }
{string getteachername (int a) return CXK [a]. Teachername; }
{string gettime (int a) return CXK [a]. Time [2]; }
{int getzhouci (int a) return CXK [a]. Zhouci; }
{int getqueren (int a) return CXK [a]. Queren; } */
Friend ostream& Operator<(ostream & amp; OS, Course & amp; C);
Friend istream& Operator> (cost & amp; Is that Course & amp; C);
Void cadd (string a);
Void serase (int a);
};
Course: Course (string a and string b, c string, the string d, int, e string f, string g, string h, string, int j, int k, string l, m string, int n, int o, int p, int q, int r, string s) : cno (a), cname (b), ccollege (c), cdepartment (d), cxuefen (e), coursetype (f)/*, cteachername (g), cbanhao (h), cclass (I), CZXS (j), czhouci (k), time [0] (l), time [1] (m), allcapacity (n), sycapacity (o), PCJ (p), QMCJ (q), ZZCJ (r), see (s) */
{
Cteachername=g;
Cbanhao=h;
Cclass=I;
CZXS=j;
Czhouci=k;
Time [0]=l;
Time [1]=m;
Allcapacity=n;
Sycapacity=o;
PCJ=p;
QMCJ=q;
ZZCJ=r.
See=s;
}
/*
Cbanhao cteachername (g), (h), cclass (I), CZXS (j), czhouci (),; Time [0] (l), time [1] (m), allcapacity (n), sycapacity (o), PCJ (p), QMCJ (q), ZZCJ (r), see (s)

Cteachername=g;
Cbanhao=h;
Cclass=I;
CZXS=j;
Czhouci=k;
Time [0]=l;
Time [1]=m;
Allcapacity=n;
Sycapacity=o;
PCJ=p;
QMCJ=q;
ZZCJ=r.
See=s; */
Istream& Operator> (cost & amp; Is that Course & amp; C)
{
Is> Arthur c. no> Arthur c. name> Arthur c. college> Arthur c. department> Arthur c. xuefen> Arthur c. oursetype;
The return is;
}
Ostream& Operator<(ostream & amp; OS, Course & amp; C)
{
Vector : : iterator it;
OsOsFor (=it Arthur c. snov. The begin (); it!=Arthur c. snov. End (); It++)
{
Os<* it;
}
Return the OS;
}
Void Course: : cadd//student id (string a)
{
Csnov. Push_back (a);
M.i nsert (make_pair (a, csnov. The size () - 1));
}
/* void Course: : serase//serial number (int a)
{
Map : : iterator cit.
Vector
  • Related