?? caccount.cpp
字號:
/***********************************************************************
* Module: CAccount.cpp
* Author: Administrator
* Modified: 2008年8月31日 20:10:27
* Purpose: Implementation of the class CAccount
* Comment: 帳戶信息
***********************************************************************/
#include "CAccount.h"
#include <vector>
/*全局變量*/
vector<CAccount> accountlist;
int CountAccount =1;
////////////////////////////////////////////////////////////////////////
CAccount::CAccount()
{
m_money =0.0;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::getM_id()
// Purpose: Implementation of CAccount::getM_id()
// Return: int
////////////////////////////////////////////////////////////////////////
int CAccount::Getid(void)
{
return m_id;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::setM_id(int newM_id)
// Purpose: Implementation of CAccount::setM_id()
// Parameters:
// - newM_id
// Return: void
////////////////////////////////////////////////////////////////////////
void CAccount::Setid(int id)
{
m_id = id;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::getM_name()
// Purpose: Implementation of CAccount::getM_name()
// Return: string
////////////////////////////////////////////////////////////////////////
string CAccount::Getname(void)
{
return m_name;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::setM_name(string newM_name)
// Purpose: Implementation of CAccount::setM_name()
// Parameters:
// - newM_name
// Return: void
////////////////////////////////////////////////////////////////////////
void CAccount::Setname(string name)
{
m_name = name;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::getM_sex()
// Purpose: Implementation of CAccount::getM_sex()
// Return: char
////////////////////////////////////////////////////////////////////////
char CAccount::Getsex(void)
{
return m_sex;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::setM_sex(char newM_sex)
// Purpose: Implementation of CAccount::setM_sex()
// Parameters:
// - newM_sex
// Return: void
////////////////////////////////////////////////////////////////////////
void CAccount::Setsex(char sex)
{
m_sex = sex;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::getM_mobilephone()
// Purpose: Implementation of CAccount::getM_mobilephone()
// Return: string
////////////////////////////////////////////////////////////////////////
string CAccount::Getmobilephone(void)
{
return m_mobilephone;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::setM_mobilephone(string newM_mobilephone)
// Purpose: Implementation of CAccount::setM_mobilephone()
// Parameters:
// - newM_mobilephone
// Return: void
////////////////////////////////////////////////////////////////////////
void CAccount::Setmobilephone(string mobilephone)
{
m_mobilephone = mobilephone;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::getM_birthday()
// Purpose: Implementation of CAccount::getM_birthday()
// Return: CDate
////////////////////////////////////////////////////////////////////////
CDate CAccount::Getbirthday(void)
{
return m_birthday;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::setM_birthday(CDate newM_birthday)
// Purpose: Implementation of CAccount::setM_birthday()
// Parameters:
// - newM_birthday
// Return: void
////////////////////////////////////////////////////////////////////////
void CAccount::Setbirthday(CDate birthday)
{
m_birthday = birthday;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::getM_money()
// Purpose: Implementation of CAccount::getM_money()
// Return: double
////////////////////////////////////////////////////////////////////////
double CAccount::Getmoney(void)
{
return m_money;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::setM_money(double newM_money)
// Purpose: Implementation of CAccount::setM_money()
// Parameters:
// - newM_money
// Return: void
////////////////////////////////////////////////////////////////////////
void CAccount::Setmoney(double money)
{
m_money = money;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::getM_isstop()
// Purpose: Implementation of CAccount::getM_isstop()
// Return: bool
////////////////////////////////////////////////////////////////////////
bool CAccount::Getisstop(void)
{
return m_isstop;
}
////////////////////////////////////////////////////////////////////////
// Name: CAccount::setM_isstop(bool newM_isstop)
// Purpose: Implementation of CAccount::setM_isstop()
// Parameters:
// - newM_isstop
// Return: void
////////////////////////////////////////////////////////////////////////
void CAccount::Setisstop(bool isstop)
{
m_isstop = isstop;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -