- 3
class Calc { char Grade; int Bonus; public: Calc() {Grade=âEâ; Bonus=0; } void Down ( int G ) { Grade - = G; } void Up (
3 RĂ©ponses
+ 5
do you need help with that code? Why are you posting this?
0
class Calc {
char Grade;
int Bonus; public:
Calc() {Grade=âEâ;Bonus=0;} void Down(int G)
{
Gradeâ=G; }
Void Up(int G) {
Grade+=G; Bonus++;
}
void Show() {
cout<<Grade<<â#â<<Bonus<<end1;
} };
void main() {
Calc c; C.Down(2); C.Show(); }
please tell me something about this question
- 1
public
calc()
answer-void