- 3
class Calc { char Grade; int Bonus; public: Calc() {Grade=’E’; Bonus=0; } void Down ( int G ) { Grade - = G; } void Up (
3 Antworten
+ 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