logicalelement.h

来自「重言式是当所有逻辑变元取遍所有值时都为真的表达式。这个程序是用来对重言式进行判别」· C头文件 代码 · 共 48 行

H
48
字号
// Class automatically generated by Dev-C++ New Class wizard

#ifndef LOGICALELEMENT_H
#define LOGICALELEMENT_H

class LogicalElement
{
public:
	// class constructor
	LogicalElement(char chElement, bool bPositive = true);
	char Element()
	{
		return m_chElement;
	}
	
	void Element(char chElement)
	{
		m_chElement = chElement;
	}
	
	bool Value()
	{
		return m_bValue;
	}

	bool Value(bool value)
	{
		m_bValue = value;
	}

  	bool Positive()
	{
		return m_bPositive;
	}
   
	void Positive(bool bPositive)
	{
		m_bPositive = bPositive;
	}
		
private:
	bool m_bValue;
	char m_chElement;
	bool m_bPositive;
};

#endif // LOGICALELEMENT_H

⌨️ 快捷键说明

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