码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
网易的一道笔试题的参考解法---关于广告牌投放问题
有N个广告牌(N boards; 8 9 public Signboard() { 10 super(); 11 boards = new HashMap();//Integer参数记录广告牌的位置,AD参数记录广告内容 12 } 13 1...
分类:其他好文   时间:2015-01-08 23:56:21    阅读次数:241
viewpager实现无限循环滚动幻灯片
思路是:设置pageradapter的count为Integer.MAX_VALUE,但实际的item只有几个,用取余的方式取item,在设置adapter时同时设置currentItem为实际item数的N倍(足够大就好)。这样就可以左右无缝循环滑动!(毕竟你不可能滑上亿次),并且不用担心内存问题,就那几个玩意~~~...
分类:其他好文   时间:2015-01-08 22:53:33    阅读次数:862
Mybatis中jdbcType的类型
具体支持的类型参见:org.apache.ibatis.type.JdbcTypeARRAY, BIT, TINYINT, SMALLINT, INTEGER, BIGINT, FLOAT, REAL, DOUBLE, NUMERIC,STRUCT,DECIMAL, CHAR, VARCHAR, L...
分类:数据库   时间:2015-01-08 20:04:17    阅读次数:731
LeetCode--Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. class Solution { public: bool isPalindrome(int x) { if(x < 0) return false; int org = ...
分类:其他好文   时间:2015-01-08 18:12:09    阅读次数:124
Java-Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB 本质就是将...
分类:编程语言   时间:2015-01-08 18:09:51    阅读次数:334
C语言学习入门 (九) typedef 关键字
关键字:typedef 用法:为各种数据类型定义一个新名字(别名) typedef与基本数据类型 typedef int Integer;Integer a= 8; 也可以在别名的基础上再起一个别名 typedef IntegerMyInteger;MyInteger aa = 8; 原来的数据类型也可以正常使用 typedef与指针...
分类:编程语言   时间:2015-01-08 17:57:38    阅读次数:225
C语言学习入门 (八) typedef 关键字
关键字:typedef 用法:为各种数据类型定义一个新名字(别名) typedef与基本数据类型 typedef int Integer; Integer a = 8; 也可以在别名的基础上再起一个别名 typedef Integer MyInteger; MyInteger aa = 8; 原来的数据类型也可以正常使用 typedef...
分类:编程语言   时间:2015-01-08 13:25:06    阅读次数:153
MatchText MatchStr 区别
区别就是 是否区分大小写。str=字符串,区分text=文本,不区分时间长了就忘了。function AnsiCompareText(const S1, S2: string): Integer;begin{$IFDEF MSWINDOWS} Result := CompareString(LOC....
分类:其他好文   时间:2015-01-08 12:56:07    阅读次数:192
mysql设置自增主键
--建表语句create table user( id integer primary key, firstname varchar(200) not null, lastname varchar(200) not null, age integer ); --设置自增主键alter...
分类:数据库   时间:2015-01-08 10:52:18    阅读次数:185
LeetCode--Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 class Solution { public: int reverse(int x) { if(x>2147483647 || x <= -2147483648 |...
分类:其他好文   时间:2015-01-08 09:43:00    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!