#include using namespace std;class Point {public: double x; double y;};int main(){ Point *pt2; pt2 = new Point; // heap 공간에 pt2 공간이 할당되고 그 주소를 가리킴 pt2->x = 100.0; // pt2->x (= (*pt2).x) pt2->y = 200.0;}Delete가 중요한 이유void corrected_func() { Account *acct_ptr = new Account("Joe", 400, 1300.00); delete acct_ptr;}this pointer파라미터 이름이랑 멤버변수 이름이랑 같을 때 헷갈리기 때문에 쓰임.this->x = x..