stringobject.h

来自「虚基类的实现」· C头文件 代码 · 共 32 行

H
32
字号
// StringObject.h: interface for the StringObject class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STRINGOBJECT_H__30247095_45C7_4675_BD79_7D50B2468126__INCLUDED_)
#define AFX_STRINGOBJECT_H__30247095_45C7_4675_BD79_7D50B2468126__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <string>
using namespace std;

#include "Object.h"

class StringObject:public Object
{
private:
	string sptr;
public:
	StringObject();
	StringObject(string);
	~StringObject();

	bool operator>(Object &);
	bool operator!=(Object &);
	void Print();
};

#endif // !defined(AFX_STRINGOBJECT_H__30247095_45C7_4675_BD79_7D50B2468126__INCLUDED_)

⌨️ 快捷键说明

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