111,125
社区成员
发帖
与我相关
我的任务
分享public bool isExist(string s)
{
string[] str ={ "+", "-", "*", "/" };
return Array.IndexOf(str, s) >=0;
}
private bool Oper(string tempOper)
{
bool boolean = false;
string[] str ={ "+", "-", "*", "/" };
for (int count = 0; count < str.Length; count++)
{
if (str[count] == tempOper)
{
boolean = true;
break;
}
}
return boolean;
}List<string> list = new List<string>(new string[] { "+", "-", "*", "/" });
if (list.Contains(textBox1.Text))
richTextBox2.Text = "true";
else
richTextBox2.Text = "false"; private bool Oper(string tempOper)
{
bool boolean = false;
string[] str ={ "+", "-", "*", "/" };
for (int count = 0; count < str.Length; count++)
{
if (str[count] == tempOper)
{
boolean = false;
break;
}
}
return boolean;
}