Sesiones de PyR
Array
0 Votos
2 Respuestascan 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 Votos
8 RespuestasReal life programming
2 Votos
2 RespuestasUsing C
0 Votos
1 Respuestahow to make website
-1 Voto
3 Respuestasarrays
0 Votos
1 RespuestaEn tendencia hoy
Help please?
4 Votes
Ejercicio Pytho
0 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
Game development
0 Votes
Ruby programming?
3 Votes