Обсуждения
Python func res
-2 голосов
1 ответwhat does res mean in python?
4 голосов
7 ответовWhy res = [0:5:-1] dont work?
0 голосов
5 ответовWhat is mean by res in python?
0 голосов
3 ответовShould I continue ?
1 голос
2 ответов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 ответовexplanation plzzzz!!!
0 голосов
2 ответовАктуальное сегодня
Someone can help me
2 Votes
What's wrong with this?
2 Votes
HTML community, HELP!!
2 Votes
X velocity
0 Votes
Files not linking in C++
0 Votes
I am a super beginner
0 Votes
Web Dev
0 Votes
Pls give me an idea
1 Votes