1.打印short、long、long long和unsigned#include int main(void) { unsigned int un = 3000000000; short end = 200; long big = 65537; ...
分类:
其他好文 时间:
2015-04-28 11:26:44
阅读次数:
111
1.顺序结构 1.if语句 (1)图例 (2)三种格式 A:格式1 B:格式2 C:格式3 2.swich语句 图例: 格式: 【注】input可以是byte,short,int,char;JDK5以后可以是枚举;JDK7以后可以是字符串; 3.循环语句 图例: (1)for循环 (2)while循...
分类:
编程语言 时间:
2015-04-27 23:30:33
阅读次数:
254
这是小弟的第一篇博客,写得不好还请看官见谅哈!java 有两种数据类型:基本数据类型(int,short,long,byte,float,double,boolean,char),引用数据类型(基本数据类型之外的数组,String,对象等等)。在方法中传参数有两种方式:值传递和引用传递先看下面的一个...
分类:
编程语言 时间:
2015-04-27 20:07:53
阅读次数:
131
元组与列表变量分配操作符身份操作符动态类型成员操作符short-circuit逻辑异常处理增强的赋值操作符pager(26)
分类:
编程语言 时间:
2015-04-27 00:45:28
阅读次数:
117
元素中的用来为该持久化类的实例生成唯一的标识,hibernate提供了很多内置的实现。 Increment:由hibernate自动递增生成标识符,用于为long, short或者int类型生成唯一标识。如DB2、SQL Server、MySQL 中的主键生成机制。 这种方式可能产生的问题是:不能在...
分类:
Web程序 时间:
2015-04-27 00:13:11
阅读次数:
130
(1)byte的范围:-128~127。 128:10000000 -128:10000000(这里的1既是符号位,也是数值位)(2)数据类型转换(默认) byte,short,char——int——long——float——double long:8个字节 float:4个字节 A:...
分类:
其他好文 时间:
2015-04-27 00:04:03
阅读次数:
155
1.1 8种基本数据类型数值型整数类型:byte(1字节),short(2字节),int(4字节),long(8字节)浮点类型:float(4字节),double(8字节)非数值型字符型:char(2字节)布尔型:boolean ①关于字节(Byte)和位(bit):数据存储以字节(Byte)为单....
分类:
编程语言 时间:
2015-04-26 18:03:48
阅读次数:
201
《STL源码剖析》的5.7.7 hash function一节中介绍了中定义了数个现成的hash函数,全都是仿函数。这些hash函数支持的模板类型包括:char*, const char*, char, unsigned char, signed char, short, unsigned short, int , unsigned int, long, unsigned long。这些不同类型的...
分类:
其他好文 时间:
2015-04-26 12:28:03
阅读次数:
148
一 基本数据结构必须包括在类中必须具备 public static main方法大小写敏感二、数据类型四种整数类型:Int 4字节 short 2字节 long8字节 byte1字节二种浮点型float 4字节douleble 8字节char类型;boolean类型常量使用final定义 类常量使用...
分类:
编程语言 时间:
2015-04-26 06:54:39
阅读次数:
107
代码如下:
#include
using namespace std;
class CTime
{
private:
unsigned short int hour; //时
unsigned short int minute; //分
unsigned short int second; //秒
public:
...
分类:
其他好文 时间:
2015-04-25 10:47:23
阅读次数:
155