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
HTML/CSS questions
0 Votes
Find courses
0 Votes
Certificate Problem
0 Votes
How to learn css and html
0 Votes
C pointers
1 Votes
what the hell is going on this lessons cause i cant undrstand anything on any of the lessons
0 Votes
About progress
0 Votes