ntohs =net to host short int 16位htons=host to net short int 16位ntohs =net to host long int 32位htonl=host to net long int 32位简述: 将一个无符号短整形数从网络字...
分类:
Web程序 时间:
2015-11-23 13:28:20
阅读次数:
163
今天讲的知识点主要有:进制的转换与位运算位运算用途:直接操作二进制,省内存,效率高,只能用于整型操作 char short int long&按位与 |按位或^按位异或 ~取反 >>右移 <<左移程序控制结构及分类结构和程序设计(顺序,循环,选择)if语句介绍及基本格式if语句的嵌套if语句的高级用...
分类:
其他好文 时间:
2015-11-23 06:15:12
阅读次数:
190
---恢复内容开始---Activity之间通过Intent传递值,支持基本数据类型和String对象及它们的数组对象byte、byte[]、char、char[]、boolean、boolean[]、short、short[]、int、int[]、long、long[]、float、float[]...
分类:
其他好文 时间:
2015-11-20 21:34:10
阅读次数:
166
//-------------------------------------------------------------------------------------
void LoadTextBitmap(RGN_HANDLE Handle, BITMAP_S *pstBitmap, int size, unsigned short* incode, int len)
{
HI_S32...
分类:
其他好文 时间:
2015-11-20 14:12:53
阅读次数:
176
[PHP];=========PHP核心配置=====================output_buffering=On;可解决UTF8的BOM导致Header不能用的问题short_open_tag=On;开启短标记;magic_quotes_gpc=On;防SQL注入cgi.fix_path...
分类:
Web程序 时间:
2015-11-19 18:22:55
阅读次数:
137
unsigned short TestCenter::CStringToHex(CString Text){ unsigned short retValue = 0; for (int i =0; i<Text.GetLength (); i++) { char ch...
分类:
其他好文 时间:
2015-11-19 14:54:49
阅读次数:
143
html的一般格式 常用标签注释 里面是内容 例如换行 相当于C/JAVA里的\n创建一条水平线,下标 例如xn 等价于Xn(数学)上标例如 xn 等价于x^n(数学)段落 例如This is some text in a very short paragraph超链接 有href属性, ...
分类:
Web程序 时间:
2015-11-19 01:48:38
阅读次数:
150
和机器字长及编译器有关系:所以,int,long int,short int的宽度都可能随编译器而异。但有几条铁定的原则(ANSI/ISO制订的):1 sizeof(short int)<=sizeof(int) 2 sizeof(int)<=sizeof(long int) 3 short int...
分类:
编程语言 时间:
2015-11-18 21:07:57
阅读次数:
172
void ConvertGBKToUtf8(CString& strGBK) { int len=MultiByteToWideChar(CP_ACP, 0, (LPCTSTR)strGBK, -1, NULL,0); unsigned short * wszUtf8 = new unsigned ...
分类:
其他好文 时间:
2015-11-16 22:39:45
阅读次数:
173
Fencing the CowsHal BurchFarmer John wishes to build a fence to contain his cows, but he's a bit short on cash right. Any fence he builds must contain...
分类:
其他好文 时间:
2015-11-15 17:40:54
阅读次数:
199