码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果
day2_chapter4_标准类型和内建函数
1. 标准类型 Integer,Boolean, Long integer, Floating point real number, Complex number, String, List, Tuple, Dictionary 其他内建类型: 类型, Null对象(None) 文件,集合,函数.....
分类:其他好文   时间:2014-05-10 00:20:30    阅读次数:336
Integer 内部实现
1 public static void main(String[] args) { 2 Integer in1 = 128; 3 Integer in2 = 128; 4 System.out.println(in1 == in2 ); 5...
分类:其他好文   时间:2014-05-09 23:50:29    阅读次数:270
报错:java.lang.Long cannot be cast to java.lang.Integer
Long 无法转化成Integer类型.    这个异常 经常出现在hinbernate分页查询的时候.  原因:          这里在Hibernate2.0之前版本list.get(0)返回的是Integer类型.          但是在Hibernate3.0以后版本list.get(0)返回的是Long类型.  解决方法 public Intege...
分类:编程语言   时间:2014-05-09 22:00:46    阅读次数:327
全排列的解法
全排列可以用深搜的方式求解。解答树如下:     可以运行的代码: import java.util.ArrayList; import java.util.List; public class Perm { public static Integer[] data = {19, 37, 61, 79, 89}; public static int depth; public...
分类:其他好文   时间:2014-05-09 21:09:51    阅读次数:293
Rabin Karp 算法实战
关键字Rabin karp 算法,C++,ubuntu 14.04, linux, big integer, gmp为了计算冗余度, 我写出了如下算法void HandleAMission(const char *srcFileName, FILE *output, int blockSize, i...
分类:其他好文   时间:2014-05-09 20:12:25    阅读次数:270
PHP中的数据类型(1)
PHP 支持八种原始类型。四种标量类型:布尔型(boolean)整型(integer)浮点型(float)(浮点数,也作“double”)字符串(string)两种复合类型:数组(array)对象(object)最后是两种特殊类型:资源(resource)NULL为了确保代码的易读性,本手册还介绍了...
分类:Web程序   时间:2014-05-09 13:19:34    阅读次数:388
Leetcode: Roman to Integer, Integer to Roman
Roman to IntegerInteger to Roman这两题纯粹是模拟题,关键就是理解罗马计数,直接上代码吧class Solution {public: int romanToInt(string s) { int result = 0; for (...
分类:其他好文   时间:2014-05-09 09:46:36    阅读次数:298
session值的使用
将对象放入session: ActionContext.getContext().getSession().put("stu_id",id);将session值取出来使用: Integer id =(Integer) ActionContext.getContext().getSession().....
分类:其他好文   时间:2014-05-09 09:21:33    阅读次数:236
两个奇怪的取地址符号
function Fun(x: Integer): Integer;asm mov ecx, &x dec ecx {汇编中的 dec 是减 1 指令, 和 Delphi 是一样的} mov @Result, ecx {在本例中去掉 @ 也可以, 暂时不知怎么回事}end;去掉两个符号,对...
分类:其他好文   时间:2014-05-09 09:20:32    阅读次数:323
把x指针指向的4个字节次序颠倒过来
举例:x指向的内存地址,其字节内容从低到高依次分别为c1,c2,c3,c4(Delphi读取一个integer的时候,结果是c4c3c2c1,其排列规则是"高高低低"),那么结果是c4,c3,c2,c1(Delphi读取一个integer的时候,结果是c1c2c3c4)用delphi写的程序,把x指...
分类:其他好文   时间:2014-05-09 05:41:08    阅读次数:329
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!