Discussions Q&R
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 Vote
7 RéponsesArray
0 Vote
2 RéponsesProgrammers out there
1 Vote
2 Réponsescan 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 Vote
8 RéponsesReal life programming
2 Votes
2 Réponseshow to make website
-1 Vote
3 RéponsesAujourd'hui en vedette
SQL
3 Votes
HTML/CSS questions
0 Votes
Html
1 Votes
Find courses
0 Votes
How to learn css and html
0 Votes
Certificate Problem
0 Votes