错误CS1022: 应输入类型、命名空间定义或文件尾 错误 CS1513: 应输入 } 错误如上,请问该如何修改?
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Da...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace 计算圆面积周长 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void label1_Click(object sender, EventArgs e) { } private void textBox1_TextChanged(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { void Mianji(string r) { r=textBox1.Text; double s=Math.PI*r^2; textBox2.Text=s.ToString("F2");; } void Mianji(float r) { r=float.Parse (textBox1.Text.Trim()); double s=Math.PI*r^2; textBox2.Text=s.ToString("F2"); } void Zhouchang(string r) { r=textBox1.Text; double l=Math.PI*r*2; textBox3.Text=l; } void Zhouchang(float r) { r=float.Parse (textBox1.Text.Trim()); double l=Math.PI*r*2; textBox3.Text=l.ToString("F2"); } } } }
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询