|
8.3.4测试中我已经把代码都编辑好了 可是最后还是提示我错误
我编的代码是
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
string[] tcourses =new string[]{
"C#语言","数据结构"};
Teacher teacher =new Teacher("张老师",35,tcourses,"系主任");
string [] s1courses=new string[]{
"C#语言","数据结构","离散数学"};
Studengt s1=new Student("学生1",20,s1courses,"200701班");
string [] s2courses=new string[]{
"C#语言","数据结构","汇编语言"};
Student s2=new Student("学生2",21,s2courses,"200702班");
teacher.ShowInfo();
s1.ShowInfo();
s2.ShowInfo();
Console.ReadLine();
}
}
}
}
错误提示:错误消息
应输入类型、命名空间定义或文件尾 |
|