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

📄 message.h

📁 本代码是基于LINUX系统下的
💻 H
字号:
#ifndef __MESSAGE_H__
#define __MESSAGE_H__
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#include <memory.h>
#include <string.h>


class CMessage
{
public:
	CMessage(){total_Str = NULL;}
	CMessage(char *buff, int buf_length);
	void SetSingleStr(char *str, int startc, int length);
	void GetsingleStr(char *str, int startc, int length);
	int GetType();
	int GetTotalStrLen();
	int GetSID();

	virtual char *GetTotalStr(){return total_Str;}		//cs
	virtual int GetUID(){return total_Str[0];}		//c
	virtual char *GetPWD(){return total_Str;}		//c
	virtual char *GetName(){return total_Str;}		//c
	virtual int GetLMCount(){return total_Str[0];}		//s
	virtual char *GetList(){return total_Str;}			//s
	virtual char *GetMessage(){return total_Str;}		//s
	virtual ~CMessage();

protected:
	int Type,Sid,total_length;
	char *total_Str;
};

#endif 







⌨️ 快捷键说明

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