F&A Diskussionen
Array
0 Stimmen
2 AntwortenProgrammers out there
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 AntwortenReal life programming
2 Stimmen
2 AntwortenWhat exactly is Java Script?
0 Stimmen
2 Antwortenhow to make website
-1 Stimme
3 AntwortenHeute heiß
Someone can help me
1 Votes
What's wrong with this?
2 Votes
HTML community, HELP!!
1 Votes
I am a super beginner
0 Votes
X velocity
0 Votes
Web Dev
0 Votes
How this program executes?
0 Votes
Pls give me an idea
1 Votes