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

📄 logic.cpp

📁 一个在linux下的shell的计算器
💻 CPP
字号:
/* * * * */#include <iostream>#include "logic.h"#include "interpreter.h"using namespace std;//////void LoadLogic(ItemList & list){ list.Add(new Operation(TRUE, "true", 0)); list.Add(new Operation(FALSE, "false", 0)); list.Add(new Operation(NOT, "not", 1)); list.Add(new Operation(LT, "<", 2)); list.Add(new Operation(GT, ">", 2)); list.Add(new Operation(LE, "<=", 2)); list.Add(new Operation(GE, ">=", 2)); list.Add(new Operation(EQ, "==", 2)); list.Add(new Operation(NE, "!=", 2)); list.Add(new Operation(AND, "and", 2)); list.Add(new Operation(OR, "or", 2)); list.Add(new Operation(XOR, "xor", 2));}//////void LogicalHelp(){ cout << endl << "Logical operators: " << endl << endl; cout << "  true     True (truth value)." << endl; cout << "  false    False (truth value)." << endl; cout << "  <        Less than." << endl; cout << "  >        Greater than." << endl; cout << "  <=       Less or equal than." << endl; cout << "  >=       Greater or equal than." << endl; cout << "  ==       Equal." << endl; cout << "  !=       Not equal." << endl; cout << "  and      And." << endl; cout << "  or       Or." << endl; cout << "  xor      Exclusive Or." << endl; cout << "  not      Logical negation." << endl;}

⌨️ 快捷键说明

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