c++定义和声明,二者之间的比较,以前经常弄混,现在一切都清晰了。
分类:
编程语言 时间:
2014-05-06 00:35:03
阅读次数:
427
1、static_cast和dynamic_cast的类型检查
static_cast的类型检查:只检查无关类之间的转换 CBaseY* pY1 = static_cast(pX); // 错误,编译未通过,
类型指向是无关的 (解释:指针变量PX是CBaseX类,现在要将其转换为CBaseY类(和...
分类:
其他好文 时间:
2014-05-06 00:34:38
阅读次数:
295
50 4 2 2 2 3000 com.mysql.jdbc.Driver
jdbc:mysql:///abc ...
分类:
数据库 时间:
2014-05-06 00:33:33
阅读次数:
445
使用语句:extern void *malloc(unsigned int
num_bytes);头文件:在TC2.0中可以用malloc.h或 alloc.h (注意:alloc.h 与 malloc.h
的内容是完全一致的),而在Visual C++6.0中可以用malloc.h或者stdlib...
分类:
其他好文 时间:
2014-05-06 00:32:40
阅读次数:
279
3 30 1000 false Test false 100 null false 60 3 60
15 100 3 root password select id from test where id=1 300 false true root false
con_test 30000 30 .....
分类:
其他好文 时间:
2014-05-06 00:31:10
阅读次数:
258
和上一题差不多,都是用最大流来做,可是有人能告诉我STL和直接用数组,真的有那么大区别吗?STL超时,数组0ms,这是什么数据,有那么叼吗附上两份代码!希望过路的人能给我看看为什么会超时STL的#include#include#include#include#include#include#incl...
分类:
其他好文 时间:
2014-05-06 00:30:42
阅读次数:
270
Just a HookTime Limit: 4000/2000 MS
(Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s):
15129Accepted Submission(s): 7506Proble...
分类:
其他好文 时间:
2014-05-06 00:30:08
阅读次数:
410
调用系统Intent剪裁图片 /** * 调用系统Intent剪裁图片 * @param
context * @param uri * @param w * @param h */ public static void startP...
分类:
移动开发 时间:
2014-05-06 00:29:43
阅读次数:
441
今天有一同学在群上聊到一个比较好玩的题目(本人看书不多,后面才知是《C++模板元编程》第二章里面的一道习题),
我也抱着试一试的态度去完成它, 这道题也体现了c++模板元编程的基础和精髓: 类型就是数据。题目如下所述:Write a ternary
metafunctionreplace_typet...
分类:
其他好文 时间:
2014-05-06 00:27:15
阅读次数:
333