using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace namespace1
{
class Program
{
static void Main(string[] args)
{
using NS1 ;///此处提示出错 ,要求输入“(”及“)”
Student student1 = new Student("TOM");
student1.OutPutName();
Console.Read();
}
}
}
namespace NS1
{
class Student
{
string name;
public Student(string name)
{
this.name = name;
}
public void OutPutName()
{
Console.WriteLine(this.name);
}
};
} |