相关讨论
做过socket的都知道网络字节转换的事情,网络中传输的数据有的和本地字节存储顺序一致,而有的则截然不同,为了数据的一致性,就要把本地的数据转换成网络上使用的格式,然后发送出去,接收的时候也是一样的,经过转换然后才去使用这些数据,基本的库函数中提供了这样的可以进行字节转换的函数,如和htons( ) htonl( ) ntohs( ) ntohl( ),这里n表示network,h表示host,htons( ) htonl( )用于本地字节向网络字节转换的场合,s表示...
网络技术
unsigned long d:6;
d:6
^
冒号和6是什么意思啊?
谁有这方面的资料?
by
大葱
-
C/C++
-
2004-10-15 10:11:39 阅读(427) 回复(1)
unsigned long a[2];
unsigned short b[4];
b=(???)a;
对于clob可以利用dbms_lob.getlength,怎样得到long的长度呢?
请指教.最好能将pl/sql代码给出。
by
jsb
-
Oracle
-
2004-04-06 17:28:28 阅读(494) 回复(0)
在oracle中使用long类型时,怎样得到字段内容的字节数(length)?
by
jsb
-
Oracle
-
2004-04-02 17:49:57 阅读(766) 回复(2)
比如 unsigned double和signed double、signed float和unsigned float 合法吗?
我在C99标准找了找,没有发现有关于这方面的明确定义。有知道的说一下啊?
by
ssafa
-
C/C++
-
2007-10-05 22:47:45 阅读(3226) 回复(7)
我在win2000 vc6下写了这样一段这样的程序
#include "stdafx.h"
#include ;
#include ;
#include ;
int main(int argc, char* argv[])
{ unsigned long cl;
char lc[32]="4100000000";
cl=atol(lc);
unsigned long nl;
nl=4100000000;
printf("%u\n",cl);
printf("%u\n",nl);
return 0;
}
执行结果
4100000000
4100000000
Press any key to continue
同样的程序在linux下gcc
/* long...
我在win2000 vc6下写了这样一段这样的程序
#include "stdafx.h"
#include ;
#include ;
#include ;
int main(int argc, char* argv[])
{ unsigned long cl;
char lc[32]="4100000000";
cl=atol(lc);
unsigned long nl;
nl=4100000000;
printf("%u\n",cl);
printf("%u\n",nl);
return 0;
}
执行结果
4100000000
4100000000
Press any key to continue
同样的程序在linux下gcc
/* long...
printf怎么打印unsigned long int类型的值?
by
reer
-
C/C++
-
2009-04-02 15:21:52 阅读(9390) 回复(6)