类型“byte” 未定义构造函数

来源:百度知道 编辑:UC知道 时间:2024/09/23 14:30:32
使用Byte[] bt = new Byte(10);
创建一个byte数组时提示类型“byte” 未定义构造函数
为什么????
我用的VS2005版本是
Visual Studio 2005 Team Edition for Developers 77987-113-3000004-41982
Microsoft Visual Studio 2005 Team Edition for Software Developers

后面应该是方括号,不应该是圆括号。
改成:Byte[] bt = new Byte[10];

因为:new Byte(10),是只初始化一个Byte对象,其初始值是10,而前面的类型是Byte[],是数组,显然又错误