一个c#的小问题

来源:百度知道 编辑:UC知道 时间:2024/09/24 17:13:33
using System;
using System.Collections.Generic;
using System.Text;

namespace hello
{
class Program
{
public static int x = 10;
public string y = "非静态变量";
public void show();
static void Main(string[] args)
这个里面的show()老是出错,,为什么??请各位帮助下。。

namespace hello
{
class Program
{
public static int x = 10;
public string y = "非静态变量";
public void show()
{
}
static void Main(string[] args)
{
.....
}
}
}

public void show()
{

}
我很少做FROM 不知道是不是