⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 int.cpp

📁 一个SGIP网关的程序源码.vc代码
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -