偶写的C#,爱看不看1。
qufo 2005-01-11 09:20:36 using System;
class student
{
static public string ver="Version 1.0 By LiuJiajun";
protected int _nstudentno;
protected string _studentname;
protected double _studentscore;
public int nstudentno
{
get
{
return _nstudentno;
}
set
{
_nstudentno = value;
}
}
public string studentname
{
get
{
return _studentname;
}
set
{
_studentname = value;
}
}
public double studentscore
{
get
{
return _studentscore*1.05; //加分,加分,嘿嘿。
}
set
{
_studentscore = value;
}
}
}
class stutest
{
public static void Main()
{
Console.WriteLine("Begin...");
student stu1=new student() ;
stu1.nstudentno=981021;
stu1.studentname="LiuJiaJun";
stu1.studentscore=650;
Console.WriteLine(stu1.nstudentno.ToString()+stu1.studentname+stu1.studentscore.ToString());
Console.ReadLine();
}
}