c#编程中“找不到类型或命名空间名称”是什么意思
usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceClasscar{public...
using System;
using System.Collections.Generic;
using System.Text;
namespace Classcar
{
public class Class1
{
private int wheels;
private string trademark;
private float maxspeed;
public void Start()
{
Console.WriteLine(trademark + "汽车已启动!");
}
public void Stop()
{
Console.WriteLine(trademark + "汽车已停止运行");
}
public static void Main()
{
Car myCar;
myCar = new Car();
myCar.trademark = "宝马";
myCar.Start();
myCar.Stop();
}
}
} 展开
using System.Collections.Generic;
using System.Text;
namespace Classcar
{
public class Class1
{
private int wheels;
private string trademark;
private float maxspeed;
public void Start()
{
Console.WriteLine(trademark + "汽车已启动!");
}
public void Stop()
{
Console.WriteLine(trademark + "汽车已停止运行");
}
public static void Main()
{
Car myCar;
myCar = new Car();
myCar.trademark = "宝马";
myCar.Start();
myCar.Stop();
}
}
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询