C语言中,double、long、unsigned、int、char类型数据所占字节数和机器字长及编译器有关系:所以,int,long int,short int的宽度都可能随编译器而异。但有几条铁定的原则(ANSI/ISO制订的):1 sizeof(short int)<=sizeof(int)2...
分类:
编程语言 时间:
2014-06-27 17:16:05
阅读次数:
246
byte 无符号 8 为整数,值为0-255;sbyte 有符号8位整数,-128~127;short 有符号16位整数,范围在-32768~32767ushort 无符号16位整数 0--32767int 有符号 32 位整数,-2147483648~2147483647uint 无符号32位整数...
分类:
其他好文 时间:
2014-06-26 12:19:46
阅读次数:
247
oc是c的超集,从c扩展而来,具备面向对象的特性,比如类,消息,单继承。c的部分:数据类型:short,int,long,float,double,char,pointer,struct常用方法:readline()atoi()sizeof()malloc()oc的部分:receiver:classNameOrObjectselector:method消息的传递通过[recei..
分类:
移动开发 时间:
2014-06-26 06:39:56
阅读次数:
305
struct结构体的字节数 等于 结构体中最大类型的字节数的倍数。如:typedef struct Student{ short id; //2个字节 char name[15]; //1*15个字节 int age; //4个字节 char num; //1个字节} Student;总共28个字节...
分类:
编程语言 时间:
2014-06-25 21:13:46
阅读次数:
235
新建一个tags.pyfrom django import templateregister = template.Library()def short_msg(value): if len(value) > 50: return value[:50]+" ......" ...
分类:
其他好文 时间:
2014-06-25 20:56:43
阅读次数:
203
Java中的基本数据类型分四类八种byte(Byte-1)/short(Short-2)/int(Integer-4)/long(Long-8)boolean(Boolean-1bit)char(Character-2)float(Float-4)/double(Double-8)括号后是他们的包装...
分类:
编程语言 时间:
2014-06-25 11:31:46
阅读次数:
234
前言: Life is short ,you need python.--Bruce Eckel我与2048的缘,不是缘于一个玩家,而是一次,一次,重新的ACM比赛.四月份校赛初赛,第一次碰到2048,两周后决赛再次遇到2048,后来五月份的广东省赛,又出现了2048。在这三次比赛过程中,我一次20...
分类:
编程语言 时间:
2014-06-25 09:17:46
阅读次数:
340
C语言中宏的使用(#,##,do…while(0)宏)
1.预定义宏的使用__FILE__,__FUNCTION__,__LINE__。
#include
void fun(void)
{
char v1;
short v2;
int v3;
long v4;
printf("v1: %x\n",&v1);
printf("v2: %x\n",&v2);
print...
分类:
编程语言 时间:
2014-06-24 15:29:13
阅读次数:
214
I won't forget Ki-kun until the day I forget Ki-kun — Mafuyu Shiina , Life is never too short to try again! — Kurimu Sakurano It's not that the world....
分类:
其他好文 时间:
2014-06-24 15:16:16
阅读次数:
210
Toast can show the help/prompts to user. There have five effect of toast as bellow:
1.default effect:
code:
Toast.makeText(getApplicationContext(), "默认Toast样式",
Toast.LENGTH_SHORT).sho...
分类:
移动开发 时间:
2014-06-22 11:35:38
阅读次数:
500