📄 user.cpp
字号:
// User.cpp: implementation of the CUser class.
//
//////////////////////////////////////////////////////////////////////
#include <string>
#include "stdafx.h"
#include "Client.h"
#include "User.h"
#include "ClientEngine.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CUser::CUser()
{
name = "";
id = "";
online = 0;
}
CUser::~CUser()
{
}
int CUser::getIDFormatOfInt()
{
string strid = id;
char* pid = (char*)strid.c_str();
int i = atoi(pid);
return i;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -