Обсуждения
Code saving location
0 голосов
1 ответDraw the flowchart of the problem.
-2 голосов
1 ответFailure to connect to Courses
0 голосов
1 ответcan 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 голосов
8 ответовАктуальное сегодня
Detach thread exception
1 Votes
Qt timer timeout
0 Votes
Not video
0 Votes
How to make a 2d game
0 Votes
Not image in the page
1 Votes
Html
1 Votes