-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudent inf.h
More file actions
61 lines (50 loc) · 1.78 KB
/
Copy pathstudent inf.h
File metadata and controls
61 lines (50 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
class information{
protected :
char nm1[20],nm2[20];
int roll;
public :
virtual void iresult(); ///Virtual Function & Function Overriding
void setdata(char x[],char y[],int z);
};
class student:public information{ ///Inheritance
protected :
int rolll;
float cse11,cse12,cse13,cse1,cr1=0.75,cse21,cse22,cse23,cse2,cr2=3,cse31,cse32,cse33,cse3,cr3=1.50,
cse41,cse42,cse43,cse4,cr4=3,cse51,cse52,cse53,cse5,cr5=1.50,
math61,math62,math63,math6,cr6=3,
hum71,hum72,hum73,hum7,cr7=3,
phy81,phy82,phy83,phy8,cr8=3,
phy91,phy92,phy93,phy9,cr9=1.5,
cgp1,cgp2,cgp3,cgp4,cgp5,cgp6,cgp7,cgp8,cgp9,cgp,l=20.5;
public :
void setdata(char x[],char y[],int z);
void setcse1(int x, float p, float q, float r, float s, float t);
void setcse2(int x, float p, float q, float r, float s, float t);
void setcse3(int x, float p, float q, float r, float s, float t);
void setcse4(int x, float p, float q, float r, float s, float t);
void setcse5(int x, float p, float q, float r, float s, float t);
void setmath6(int x, float p, float q, float r, float s, float t);
void sethum7(int x, float p, float q, float r, float s, float t);
void setphy8(int x, float p, float q, float r, float s, float t);
void setphy9(int x, float p, float q, float r, float s, float t);
float gradpoint(float x);
void gradpoint(); ///Function Overloading
void disresult();
void dresult();
void iresult();
void frank();
int cheak();
void disIresult();
};
class academic{
int *n1;
public :
// information(){}
academic(); ///Constructor
int getv()
{
return *n1;
}
~academic(){ ///Destructor
delete n1;}
};