错误1类、结构或接口成员声明中的标记“;”无效
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespa...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4
{
class Student
{
private string name;
private int_score; //←这里的“;”
public int Score
{
get{return _score;}
set{_score=value ;}
}
}
class Program
{
static void Main(string[] args)
{
Student student1 = new Student();
student1.Score = 100;
Console.Write("最后得分是:" + student1.Score);
}
}
} 展开
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4
{
class Student
{
private string name;
private int_score; //←这里的“;”
public int Score
{
get{return _score;}
set{_score=value ;}
}
}
class Program
{
static void Main(string[] args)
{
Student student1 = new Student();
student1.Score = 100;
Console.Write("最后得分是:" + student1.Score);
}
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询