#include
using namespace std;
class demo {
public:
demo() {
cout << "this is INIT!" << endl;
}
void print() {
cout << "hello" << endl;
}
};
int main() {
(1)demo a;
(2)demo *b = new demo;
(3)demo *c = new demo();
a.print();
b->print();
system("pause");
return 0;
}
这三种有啥区别啊