Form1.cs
(开头部分) 46KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Drawing;
using System.Data;
//细节。。。
//1.数字之后直接接括号默认为乘法,括号之后直接接数字,默认为乘法
//2.输入一个运算符(+ - * /)后不能接着继续输入运算符,若已有运算符,不相同则替换,‘(’后不能直接跟运算符。刚开始不能输入运算符。
//v4.0
//更改了方向键
//添加了根号运算
//修正一些bug
//V5.0
//取消括号的输入限制
//增加了cos sin tan运算
//运算式和输出结果分行表示
//增加了减法的负号功能
//增加了三次根
//待补充。。
//v6.0
//增加了log,ln等功能
//增加了Mood功能
//增加了菜单,功能未完善
namespace Simple_calculate
{
/*struct inform
{
inform(int a)
{
leftbracket = a;
rightbracket = a;
}
public int leftbracket;
public int rightbracket;
}*/
public partial class Form1 : Form
{
private double preAnswer; //前一个答案
bool error=false; //判是否错误
int errorinfoLen = 0;
bool[] CanOperation = new bool[50];
int[] pos = new int[50];
bool ALT = false; //ALT
bool flag = false;
int mood = 0; //0是DEG,1是RAD,2是GRA
string t_s = string.Empty;
int pos_x,pos_y;
char[] op = { '+', '-', '*', '/', '(', ')', '√', 'c', 's', 't','C','S','T','^','L','l','x','!', '=' };
char[,] priority =
// + - * / ( ) √ c s t C S T ^ L l x ! =
{{'>','>','<','<','<','>','<','<','<','<','<','<','<','<','<','<','<','<','>'}, //+
{'>','>','<','<','<','>','<','<','<','<','<','<','<','<','<','<','<','<','>'}, //-
{'>','>','>','>','<','>','<','<','<','<','<','<','<','<','<','<','<','<','>'}, //*
{'>','>','>','>','<','>','<','<','<','<','<','<','<','<','<','<','<','<','>'}, ///
{'<','<','<','<','<','=','<','<','<','<','<','<','<','<','<','<','<','<','='}, //(
{'>','>','>','>','>','0','>','>','>','>','>','>','>','>','>','>','>','>','>'}, //)
{'>','>','>','>','<','>','<','<','<','<','<','<','<','<','<','<','<','<','>'}, //√
后面还有 1265 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。