F&A Diskussionen
Python func res
-2 Stimmen
1 Antwortwhat does res mean in python?
4 Stimmen
7 AntwortenWhy res = [0:5:-1] dont work?
0 Stimmen
5 AntwortenWhat is mean by res in python?
0 Stimmen
3 AntwortenShould I continue ?
1 Stimme
2 Antwortencan 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 Stimmen
8 Antwortenexplanation plzzzz!!!
0 Stimmen
2 AntwortenHeute heiß
Learn python
2 Votes
Help for study
1 Votes
Spying on me
1 Votes
Where's PHP and Ruby courses?
1 Votes
Detach thread exception
1 Votes
Qt timer timeout
0 Votes
Not video
0 Votes
Not image in the page
0 Votes