Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (154.67 KB, 1 trang )
<span class='text_page_counter'>(1)</span><div class='page_container' data-page=1>
//============================================================================
// Name : class_point.cpp
// Author : Nguyen Huu The
// Version :
// Copyright : Your copyright notice
// Description : class in C++, Eclipse IDE for C/C++, Ansi-style
//============================================================================
<b>#include <stdio.h> </b>
//#include <iostream.h>
<b>#include <iostream> </b>
<b>using namespace std; </b>
<b>class Point { </b>
private:
int x, y;
public:
Point(int xx, int yy){
cout<<"Diem duoc tao"<<endl;
x = xx; y = yy;
}
void Print() {
cout<<"Diem ("<<x<<","<<y<<")"<<endl;
}
};