| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1092 人关注过本帖
标题:新学c#帮忙看下出先
取消只看楼主 加入收藏
idom
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2005-3-8
收藏
 问题点数:0 回复次数:2 
新学c#帮忙看下出先
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace js
{
    /// <summary>
    /// Description of MainForm.
    /// </summary>
    public partial class MainForm : Form
    {
        public MainForm()
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();
            
            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
        }
        
        
        
        void MainFormLoad(object sender, EventArgs e)
        {
            int a,b,y;
            a=13;  b=14;
            y=Max(a,b);
            textBox1.Text=y.ToString;
        
        }
    }
}
      private int Max(int n1,int n2)
{
   
    if (n1>n2)
    {
       return n1;
    }
    else
    {
         return n2;
   
    }
   
   
}

用sharpdevelop 写的 运行的时候出现 Expected class, delegate, enum, interface, or struct (CS1518)
搜索更多相关主题的帖子: support Windows required 
2009-10-28 16:58
idom
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2005-3-8
收藏
得分:0 
我是看了enet上的教程做的,到现在都没找出错来。。。

2009-10-28 21:25
idom
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2005-3-8
收藏
得分:0 
谢谢6楼啊!我弄了半天了。。。还以为是sharpdevelop有问题,下了个2010....

2009-10-28 23:13
快速回复:新学c#帮忙看下出先
数据加载中...
 
   



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

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