using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void Form1_Load(object sender, EventArgs e)
{ }
public void aa(int b, bool a, int c)
{
switch (b)
{
case 1:
if (a)
{
break;
}
goto Label_2A7D; case 2:
if (a)
{
goto Label_29DD;
}
goto Label_2A7D; default:
goto Label_2A7D;
}
if (c != 1)
{
throw new Exception(" c");
}
goto Label_2A7D;
Label_29DD: ; MessageBox.Show("Label_29DD"); Label_2A7D: MessageBox.Show("Label_2A7D");
} private void button1_Click(object sender, EventArgs e)
{
aa(1, false, 1);
aa(1, true, 1);
aa(2, false, 1);
aa(2, true, 1);
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void Form1_Load(object sender, EventArgs e)
{ }
public void aa(int b, bool a, int c)
{
switch (b)
{
case 1:
if (a)
{
break;
}
goto Label_2A7D; case 2:
if (a)
{
goto Label_29DD;
}
goto Label_2A7D; default:
goto Label_2A7D;
}
if (c != 1)
{
throw new Exception(" c");
}
goto Label_2A7D;
Label_29DD: ; MessageBox.Show("Label_29DD"); Label_2A7D: MessageBox.Show("Label_2A7D");
} private void button1_Click(object sender, EventArgs e)
{
aa(1, false, 1);
aa(1, true, 1);
aa(2, false, 1);
aa(2, true, 1);
}
}
}
解决方案 »
- 树形结构数据库 查询效率优化问题
- 请教个问题,关于数据库修改的
- 请问DirectX SDK安装在Microsoft Visual Studio .NET 2003中具体位置
- 【200分】请教大家如何在Winform实现类似“摇奖机”的程序,帮顶有分 谢谢
- ●●请问如何能开一个带参数的线程?◆◆
- 请问如何用C#实现vista风格的winform
- 求教!数据库方面
- 如何获取机器码?
- 无法将文件“obj\Debug\HotelManagers.CheckInForm.resources”复
- 请教一个简单问题: 如何让组合框里显示的是数据库里的一个表里的值?
- C#彩信内容整合问题
- 请问各位,有没有拟合圆的较好的方法和代码,先谢了
但是 我的Label_2A7D:代码段都是很长的,而且Label_2A7D:代码段中有穿插其他GOTO语句的现象
郁闷啊!