C#索引超出了数组界限问题 - .NET技术 / C#
byte[] data1 = new byte[25];
string str = " ";
switch (Data1[3])
{
case 0x20:
str = "1";
str += str;
break;
case 0x21:
str = "2";
str += str;
break;
case 0x22:
str = "3";
str += str;
break;
case 0x23:
str = "4";
str += str;
break;
case 0x24:
str = "5";
str += str;
break;
case 0x25:
str = "6";
str += str;
break;
case 0x26:
str = "7";
str += str;
break;
case 0x27:
str = "8";
str += str;
 
相关问答:
请问VFP中如何调用C/C++函数?
你要调用什么功能的函数?要看看VFP中有没有对应的函数,如果有就省着再调用了。如果没有,可以将C/C++函数写个DLL或FLL,然后在VFP调用即可。
十豆三 老师,怎么才能修改自己的 ......
思路:要用c#生成一个播放机的播放列表的xml,例如:
<daty datys='2010-04-05' datye='2010-05-01' > //这是播放的日期段
<time times='01:12:00' timee='02:30:00'> ......
谁能帮我把下面这些代码改成VB形式的,多谢了,急用~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[],float g ......
挺繁琐,之前发的帖子,分值太低现在重发一个。欢迎各位大侠~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......
求一本C#设计模式的书 ,我感觉我的代码运用接口,委托,属性的地方很少,肯定是我的设计模式太差了 ,有没有这方面,从国外翻译过来的,比较好的设计模式的书,推荐一下吧,非常感谢.
高人们说 代码重构的书好些,那我要改看 ......