0
Guys please help me to debug this C++ program
Output of the coding is should be roll_no:0101 marks obtained : s1=39 s2=65 sports marks :29 total score=133 https://code.sololearn.com/chv5NTmKVhrq/?ref=app
3 Respostas
+ 9
NASRUDDIN CHOUDHARY ,
have you ever thought about using a proper formating of your source code?
it will improve the readability, also maintaining and debugging will be easier. the absence of code formatting is real nightmare. people don't like this and may skip your request instead of helping you.
+ 1
Lothar please help me 😭
+ 1
You have missed 's' in student word. That's why you are facing the errors. The code will be as follow:
class test :public students
{public:
float s1,s2;
public:
void get_marks(float x, float y)
{
s1=x;s2=y;
}
void put_marks(void)
{cout<<"marks obtained :\ns1="<<s1<<"\ns2="<<s2;
}
};