private void Form1_Load(object sender, EventArgs e)
{
int a = 15;
int b = 14;
int y = Max(a, b);
this.textBox1.Text = y.ToString();
}
为什么运行说max没有不存在?需要怎么样定义吗
{
int a = 15;
int b = 14;
int y = Max(a, b);
this.textBox1.Text = y.ToString();
}
为什么运行说max没有不存在?需要怎么样定义吗
System.Math
MAX如果不是你自定义的方法。。那就要用 int y = Math.Max(a,b);