tab.h

来自「学习类的」· C头文件 代码 · 共 40 行

H
40
字号
// tab.h: interface for the tab class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TAB_H__6466A23B_B3A2_4261_BFD1_DAE171EE8252__INCLUDED_)
#define AFX_TAB_H__6466A23B_B3A2_4261_BFD1_DAE171EE8252__INCLUDED_

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

class tformat
{
	int depth;
public:
	tformat():depth(0)
	{
	}
	void operator++()
	{
		depth +=2;
	}
	void operator--()
	{
		depth -=2;
	}
	void operator++(int)
	{
		operator++();
	}
	void operator--(int)
	{
		operator--();
	}
	void indent();
}TAB;


#endif // !defined(AFX_TAB_H__6466A23B_B3A2_4261_BFD1_DAE171EE8252__INCLUDED_)

⌨️ 快捷键说明

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