No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
You have to change the data type of height. At this yime it can store a 0 or 1. Not 2-5 ok so you have to switch to int type. int height; if you get solve your problem I will also tell you some tricks to short this code. first …
dear you are doing an error in line 20. Declare and initialize denominator before the loop start not with in the loop. beacause every time it will assin value 1, and you are getting same result. only edit it and fix it.
you must convert each character of string to a character type variable and the using type casting you can do it. i,e. char ch = 'A'; int en = ch; //en == 65; en = en + 3; char = en; // char == D;
class student class student { protected: char name[30]; int attendence; float gpa; public: stuent(){} student(char n[],int a, flat g):attendence(a), gpa(g){strcpy(name, n);} ~student(){} virtual get_attendence() { cout<<"Enter his atendence (out of 50) : "; cin>>attendence; } virtual get_result() { cout<<"Enter your Gpa (out of 4.00) : "; cin>>gpa; } }; this …
The End.
Shezee