?? student.cpp
字號:
// Student.cpp: implementation of the CStudent class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Student.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CStudent::CStudent()
{
m_name[0]='\0';
m_age=20;
}
CStudent::~CStudent()
{
}
// 成員函數的實現
void CStudent::Set_Name(char* pstr)
{
strcpy(m_name, pstr);
}
char* CStudent::Get_Name()
{
return m_name;
}
void CStudent::Set_Age(int a)
{
m_age=a;
}
int CStudent::Get_Age()
{
return m_age;
}
// 導出函數的實現
int Min(int a, int b)
{
return a>b?b:a;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -