Discussioni Q&A
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 Voti
8 RisposteGeometric forms
-2 Voti
2 Rispostehey I have a doubt in brute force prg by Mr robot .......so it's just checking each character and storing it in a string ....and he is giving it a name..so I have to ask that how I will setup or send a link to someone whom I wanna hack and whatever he types in my prg I will get it...plz plz help me...using Mr robot program
0 Voti
4 RispostePopolare oggi
Decorators in python.
2 Votes
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
Salut tout le monde
1 Votes
Please click me
0 Votes
How can i isntall modules
1 Votes
Unity's loading time?
4 Votes