2013年5月20日

摘要: 1 #include "iostream" 2 using namespace std; 3 4 typedef struct _AutoWithWheel 5 { 6 int enable:4; 7 int Axis:4; 8 int pulse:8; 9 10 }AutoWithWheel,*pAutoWithWheel;11 void main()12 {13 AutoWithWheel aww={0,0,0};14 char binaryarray[255];15 aww.pulse=-1;16 aww.enable=... 阅读全文
posted @ 2013-05-20 15:17 zhiying678 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 命名空间“System”中不存在类型或命名空间名称“Linq”(是缺少程序集引用吗?)写sharppcap的时候遇到的问题,解决方法,先把项目改成3.0 再改回3.5就好了。几种字符串转换, byte[] formal = new byte[] { 0x42, 0x51, 0x3, 0x6, 0x42, 0x51, 0x3, 0x6 }; string tmpstr = Encoding.ASCII.GetString(formal);//转换为字符串 显示BQ Console.WriteLine(tmpstr); String... 阅读全文
posted @ 2013-05-20 09:10 zhiying678 阅读(112) 评论(0) 推荐(0) 编辑

导航