#include <iostream>
class AHO {
private:
int *K;
public:
AHO(int *K){
this->K = K;
};
void equal(int J){
*this->K = J;
}
};
int main() {
int s=0;
std::cout << s << std::endl;
AHO name(&s);
name.equal(5);
std::cout << s << std::endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: