Q&A Discussões
Array
0 Voto
2 RespostasProgrammers out there
1 Voto
2 Respostascan 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 Voto
8 RespostasReal life programming
2 Votos
2 RespostasUsing C
0 Voto
1 Respostahow to make website
-1 Voto
3 Respostasarrays
0 Voto
1 RespostaQuente hoje
Pig Latin
0 Votes
Someone can help me
0 Votes
Square Roots
0 Votes
What's wrong with this?
2 Votes
I’m new someone can help me
0 Votes
What's doctype htMl
2 Votes
HTML community, HELP!!
0 Votes