苹果app支持arm64以后会有一个问题:NSInteger变成64位了,和原来的int(%d)不匹配,会报如下warning,Values of type 'NSInteger' should not be used as format arguments; add an explicit cas...
分类:
其他好文 时间:
2015-12-28 06:11:35
阅读次数:
460
目录:1.std::share_ptr智能指针:2.std::tr1::function模板类:3.stringstream:4.set/vector/map:5.static_cast (expression);std::share_ptr智能指针:http://en.cppreference.c...
分类:
编程语言 时间:
2015-12-27 17:41:57
阅读次数:
292
Java Generic's wildcards is a mechanism in Java Generics aimed at making it possible to cast a collection of a certain class, e.g A, to a collection o...
分类:
编程语言 时间:
2015-12-27 09:38:10
阅读次数:
294
知道了C++的I/O设施之后。这些就变的非常easy了。假设你常常使用,时间长了就会有感觉。这个事情是多此一举吗?就当是练习吧,知道原理之后,你会认为用起来更舒畅,更喜欢C++了。#include #include #include #include #include #include using ...
分类:
其他好文 时间:
2015-12-27 09:35:26
阅读次数:
132
java.lang.ClassCastException: $Proxy9 cannot be cast to test.spring.service.impl.PersonServiceImpl2 at test.junit.testPersonservice.test(testPerson...
分类:
编程语言 时间:
2015-12-23 17:56:15
阅读次数:
302
select '123'B is TRUE; 1SET @a='123'; select '123'is TRUE; 0select cast('222' as unsigned); 222select cast('ddd' as unsigned); 0select cast('...
分类:
数据库 时间:
2015-12-23 12:49:28
阅读次数:
173
取出某个月有几天--取出某个月有几天SELECT 32-DAY(GETDATE()+(32-DAY(GETDATE())))SELECT 32-DAY(CAST('2000-02-22' AS DATETIME)+(32-DAY(CAST('2000-02-22' AS DATETIME))))
分类:
其他好文 时间:
2015-12-22 10:16:55
阅读次数:
171
declare @i int set @i=1 while @i<=10000000begin insert into dbo.Persons (Age,Sex,Grade,Name) values(cast( floor(rand()*100) as int),'男','2','张三') set ...
分类:
数据库 时间:
2015-12-20 09:20:14
阅读次数:
228
---------内置函数------------select hierarchyid::GetRoot()--0xselect hierarchyid::Parse('/1/1/') --0x5AC0select cast(0x5AC0 as hierarchyid)--0x5AC0select ...
分类:
其他好文 时间:
2015-12-17 12:21:08
阅读次数:
226
--合同执行度(累计已审批/合同汇总金额)--投资进度(合同汇总总额/批准概算投资额)select a.*,cast(round((ljysp/( case when xmze=0 then 1 else xmze end))*100,2) as numeric(5,2)) as htzxd,cas...
分类:
数据库 时间:
2015-12-15 16:49:53
阅读次数:
251