Q&A Discussies
Python func res
-2 Stemmen
1 Antwoordwhat does res mean in python?
4 Stemmen
7 AntwoordenWhy res = [0:5:-1] dont work?
0 Stemmen
5 AntwoordenWhat is mean by res in python?
0 Stemmen
3 AntwoordenShould I continue ?
1 Stem
2 Antwoordencan 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 Stemmen
8 Antwoordenexplanation plzzzz!!!
0 Stemmen
2 AntwoordenPopulair vandaag
Where is the bug?
3 Votes
Pointers cpp
2 Votes
Is pro worth the money ?
1 Votes
Drawing images in java
2 Votes