错误 1 程序“D:\csarp\el\el\obj\x86\Debug\el.exe”不包含适合于入口点的静态“Main”方法 el
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespa...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace el
{
class Person
{
private string name = "titi";
private int age = 27;
public void Display()
{
Console.WriteLine("姓名:{0},年龄:{1}", name, age);
}
public void SetName(string PersonName)
{
name = PersonName;
}
public void SetAge(int PersonAge)
{
age = PersonAge;
}
}
} 展开
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace el
{
class Person
{
private string name = "titi";
private int age = 27;
public void Display()
{
Console.WriteLine("姓名:{0},年龄:{1}", name, age);
}
public void SetName(string PersonName)
{
name = PersonName;
}
public void SetAge(int PersonAge)
{
age = PersonAge;
}
}
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询