| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 698 人关注过本帖
标题:C# 一个程序不能调试生成 请各位大侠帮 提出问题 并帮 忙修改
只看楼主 加入收藏
海洋彼岸
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2015-1-7
结帖率:0
收藏
已结贴  问题点数:20 回复次数:2 
C# 一个程序不能调试生成 请各位大侠帮 提出问题 并帮 忙修改
namespace selfexam
{
    public partial class PrimaryExmForm : Form
    {
        public PrimaryExmForm()
        {
            InitializeComponent();
        }

        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void timer1_Tick(object sender, EventArgs e)
        {
        }
      
  
        public PrimaryExmForm()
        {
            InitializeComponent();
        }
        int ExamEecond = 0;

        private void timer1_Tick(object sender, EventArgs e)
        {
            ExamSecond++;
            this.ExamTime.Text = examsecond.ToString();

         }
      
      
           }
        private void btnGrade_Click(object sender, EventArgs e)
        {
         int Score = 0;
            if (this.Anwser1.text=="2000") score=score+10;
            if (this.Anwser21A.checked) score=score+10;
            if (this.Anwser22C.checked) score=score+10;
            if (this.Anwser23.text=="PasswordChar") score=score+10;
            if (this.Anwser24.text=="text") score=score+10;
            if (this.Anwser3A.checked && this.Anwser3B.checked && this.Anwser3C.checked && !this.Anwser3D.checked &&  ) score=score+10;
            this.timer1.Enablled=false ;
            this.bntGrade.Enabled= flase;
            this.TotalScore.Text = score.ToString();
        }

        private void bntClose_Click(object sender, EventArgs e)
        {
            this.Close;
        }
   
}
        错误    1    应输入 class、delegate、enum、interface 或 struct    D:\Documents\Visual Studio 2010\Projects\selfexam\primaryexmform.cs    44    17    selfexam
错误    2    应输入 class、delegate、enum、interface 或 struct    D:\Documents\Visual Studio 2010\Projects\selfexam\primaryexmform.cs    58    17    selfexam
搜索更多相关主题的帖子: private public 
2015-01-07 20:26
Maick
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:32
帖 子:251
专家分:1314
注 册:2012-9-21
收藏
得分:10 
1.检查{}是否对了.
2.构造函数重复了.
3.timer1_Tick()重复了.
2015-01-08 09:55
chenqi5624
Rank: 2
等 级:论坛游民
帖 子:6
专家分:20
注 册:2011-2-10
收藏
得分:10 
多了大括号,
先找本书看看基础的慢慢来,步子大了扯到蛋,这么基础的的
2015-01-09 22:09
快速回复:C# 一个程序不能调试生成 请各位大侠帮 提出问题 并帮 忙修改
数据加载中...
 
   



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

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