Обсуждения
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 ответовАктуальное сегодня
Started learning python
2 Votes
How can one build an Ai app
2 Votes
Websites for frontend developers
1 Votes
Discrete mathematics (python)
0 Votes
How to learn python
1 Votes
C++, c# , graphical interface
1 Votes
AI Takeover
0 Votes
C course progress restart
1 Votes