#include <iostream>
class A {
public:
int x;
int y;
bool z;
A() : x(1), y(2), z(true) {}
};
int main() {
A* obj = new A;
delete obj;
int* array = new int[10];
if (obj->z && obj->x)
std::cout << "foo" << std::endl;
else if (obj->z && obj->y)
std::cout << "bar" << std::endl;
return 0;
}
Login in to like
Login in to comment