1. Trang chủ
  2. » Ngoại Ngữ

Baitap class point

1 2 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 1
Dung lượng 154,67 KB

Nội dung

[r]

(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

//============================================================================ #include <stdio.h>

//#include <iostream.h> #include <iostream> using namespace std; class Point {

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; }

};

Ngày đăng: 22/05/2021, 09:24

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN

w