标题:检测到无法访问的代码result.?
取消只看楼主
暧家一万年
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-5-25
结帖率:0
已结贴  问题点数:10 回复次数:0 
检测到无法访问的代码result.?
private void button1_Click(object sender, EventArgs e)
        {
            string str_me = button1.Text;
            ranm();
            switch (str_guest)
            {
                case "石头": label2.Text = str_guest;
                    label5.Text = str_me;
                    label3.Text = "平"; break;
                case "剪刀": label2.Text = str_guest;
                    label5.Text = str_me;
                    label3.Text = "赢"; break;
                case "布": label2.Text = str_guest;
                    label5.Text = str_me;
                    label3.Text = "输"; break;
                    result = result + 1;
                    label7.Text = result.ToString(); break;
            }
这是一部分石头剪刀布游戏的代码,执行过程说检测到无法访问的代码result是怎么回事?怎样解决呢?
搜索更多相关主题的帖子: 检测 result private void 
2012-05-25 19:07



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-368031-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.119212 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved