⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chitietdon.cpp

📁 it s a code for calculator the price of a machine which have a lot of parts.
💻 CPP
字号:
// ChiTietDon.cpp: implementation of the CChiTietDon class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "ChiTietDon.h"
#include "iostream.h"
#include "conio.h"
#include "stdio.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CChiTietDon::CChiTietDon()
{
	giatien = 0;
}

CChiTietDon::~CChiTietDon()
{
	return;
}

void CChiTietDon::Nhap()
{
	cout << "  Nhap ma so chi tiet don: ";
	cin >> maso;
	cout << "  Nhap gia tien: ";
	cin >> giatien;
}

void CChiTietDon::Xuat()
{
	printf("[%ld(%0.2f)]",maso,giatien);
}

float CChiTietDon::TinhTien()
{
	return giatien;
}

int CChiTietDon::TimKieu(long ms)
{
	if(maso == ms)
		return 0;
	return -1;
}

int CChiTietDon::DemChiTietDon()
{
	return 1;
}

CChiTiet* CChiTietDon::TimKiem(long ms)
{
	if(maso == ms)
		return this;
	return NULL;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -