using System;
using System.Collections.Generic;
using System.Text;
namespace Employee
{
class Employee
{
private int Em_id;
private string Em_name;
private double Em_salary;
Employee(int id, string name, double salary)
{
Em_id = id;
Em_name = name;
Em_salary = salary;
}
public string Id()
{
set {id=Value;}//编译器为什么提示这儿缺少分号
get { return id; }//
}
public string Name
{
set { name = Value; }//编译器为什么在name和Value下面划波浪线
get { return name; }
}
public double Salary()
{
set {salary=Value;}
get { return salary; }
}
public double Increase(double percent)
{
double increase = salary * percent;
}
}
class Program
{
static void Main(string[] args)
{
Employee em = new Employee(20091111, 李逍遥, 1000);
Console.WriteLine("此员工的信息为:{0},{1},{2}", em.Id, em.Name, em.Salary);
Console.WriteLine("次员工的增长工资为{0}", em.Increase(0.05));
}
}
}
这段代码的错误大家帮忙找找!!!!急