Dyskusje Q&A
i need c++ program does EXAMPLE: If the user entered the #’s: 999, 90,78,82,and 999
the output would be
AVERAGE = 250/3 = 83.3 AVERAGE WITH LOWEST DROPPED = 172/2 = 86.0
AVERAGE WHERE HIGHEST COUNTS TWICE =340/4 = 85.0
NOTE: Validate the input as being a plausible test score and require the user to reenter when not plausible.
1 Głos
7 odpowiedziArray
0 głosów
2 odpowiedzican anyone plz explain me this program step by step?#include <iostream>
using namespace std;
class MyClass {
public:
int var;
MyClass() { }
MyClass(int a)
: var(a) { }
MyClass operator+(MyClass &obj) {
MyClass res;
res.var= this->var+obj.var;
return res;
}
};
int main() {
MyClass obj1(12), obj2(55);
MyClass res = obj1+obj2;
cout << res.var;
}I am not getting the part inside operator+
0 głosów
8 odpowiedziReal life programming
2 głosów
2 odpowiedziUsing C
0 głosów
1 OdpowiedźWhat exactly is Java Script?
0 głosów
2 odpowiedzihow to make website
-1 Głos
3 odpowiedziarrays
0 głosów
1 OdpowiedźPopularne dzisiaj
Time up code for data revision
0 Votes
Best Python Calculator Code
1 Votes
New code
1 Votes
Clean Code
3 Votes
Hello Everyone
0 Votes
PHP
1 Votes