标题:switch问题
取消只看楼主
圭贵桂
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2018-10-27
结帖率:0
 问题点数:0 回复次数:0 
switch问题
这段代码哪里出错?有红线,编不下去了。求教。
  private void Swap(int vNum,int blank)
        {
            Point temp;
         
            switch(vNum)
            {
            case1:
               temp = lbl1.Location;
               lbl1.Location = lblBlank.Location;
               lblBlank.Location = temp;
                break;
            case 2:
            temp =lbl2.Location ;
            lbl2.Location =lblBlank .Location ;
            lblBlank .Location =temp;
            break;

            }
        }
搜索更多相关主题的帖子: switch int break temp Location 
2020-09-17 20:16



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




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

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