could explain me kind of operator
this?>in c++?
below example of code usage of it:
#include <iostream> #include <string> using namespace std; class { public: int x; }; class b : public { public: b() {x=1;} b(int x) {this?>x = x;} }; int main() { b c1; b c2(10); cout << c1.x; cout << c2.x; return 0; }
i think try -> becouse ?> not exist.
in contex, im sure want ->.
you have mistake when you´re typing. pd: try compile before ask
Comments
Post a Comment