📄 town.cpp
字号:
// town.cpp: implementation of the town class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "town.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
town::town()
{
name=NULL;
}
town::~town()
{
delete[] name;
}
void town::SetName(char *m_name)
{
name=new char[strlen(m_name)+1];
strcpy(name,m_name);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -