int.cpp

来自「一个SGIP网关的程序源码.vc代码」· C++ 代码 · 共 39 行

CPP
39
字号
// Int.cpp: implementation of the CInt class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Int.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

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

CInt::CInt()
{
	memset(strBuff, 0, sizeof(strBuff));
}
CInt::CInt(int n)
{
	memset(strBuff, 0, sizeof(strBuff));
	mn = n;
}
CInt::~CInt()
{

}
char * CInt::ToStr()
{
	sprintf( strBuff, "%d", mn );
	return strBuff;
}
void CInt::operator =(int n)
{
	mn = n;
}

⌨️ 快捷键说明

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