【1】Virtual是C++
OO机制中很重要的一个关键字。只要是学过C++的人都知道在类Base中加了Virtual关键字的函数就是虚拟函数(例如下面例子中的函数print),于是在Base的派生类Derived中就可以通过重写虚拟函数来实现对基类虚拟函数的覆盖。当基类Base的指针point指向...
分类:
编程语言 时间:
2014-05-14 02:11:02
阅读次数:
352
atitit查询表修改表字段没反应--解锁锁定的表
查询表修改表字段没反应
要是使用gui 没反应,最好使用cmd 方式,不卉不个gui 锁上..
ALTER TABLE t_mb_awardweixin MODIFY awardChoiceNumLeft int(11) DEFAULT NULL
#-----分析..
1.首先,查询by另一个表格, 要是能查询,显...
分类:
其他好文 时间:
2014-05-14 00:12:18
阅读次数:
248
在看Linux内核的路由代码时,发现有如下的结构体定义: 1 struct fib_table
{ 2 unsigned char tb_id; 3 unsigned tb_stamp; 4 int (*tb_lookup)(struct
fib_table *tb, co...
分类:
其他好文 时间:
2014-05-13 22:32:41
阅读次数:
458
1 /** 2 旋转卡壳,, 3 **/ 4 #include 5 #include 6
#include 7 #include 8 using namespace std; 9 10 const double eps = 1e-8; 11
struct point {...
分类:
其他好文 时间:
2014-05-13 21:35:05
阅读次数:
374
1 /** 2 判断直线位置关系 3 **/ 4 #include 5 #include 6
#include 7 using namespace std; 8 struct point { 9 double x,y;10 point(double
x=0,double y=...
分类:
其他好文 时间:
2014-05-13 20:28:07
阅读次数:
254
RMAN备份报错,ORA-19502,ORA-27072,RMAN-03002...
分类:
数据库 时间:
2014-05-13 09:32:17
阅读次数:
336
atitit.自适应设计悬浮图片的大小and 位置
#--------最好使用relate定位..
中间,图片的大小和位置走能相对table, 没有遮罩左的或者哈面儿文本的问题,要悬浮,使用top:-15 负值,,
#--------悬浮位置top的问题,因为相对高度..
子能使用js解决,计算top负值..
function iniBonusPicPostion() {...
分类:
其他好文 时间:
2014-05-13 09:17:59
阅读次数:
232
atitit.gui界面纵向居中总结
1.table法...这个简单..
表格设置100%高度,
三、把容器当作表格单元
CSS 提供一系列diplay属性值,包括 display: table, display: table-row, display: table-cell 等,能把元素当作表格单元来显示。这是再加上 vertical-align: middle,...
分类:
其他好文 时间:
2014-05-13 08:28:41
阅读次数:
295
本项目基于 《使用storyboards建立 Navigation Controller and Table View》 http://uliweb.cpython.org/tutorial/view_chapter/424
创建, 代码中使用了 静态的 tableviewcell
增加了 textview,url,json数据解析
部分代码片段:
//
// city...
分类:
移动开发 时间:
2014-05-13 08:19:24
阅读次数:
423
本段程序主要利用数据结构栈的先进后出特点,实现回溯求解迷宫路径问题。
#include
#include
using namespace std;
//坐标类
struct Point
{
int x;
int y;
};
//地图类
template
struct Map
{
int (*p)[A];
int row;//行数
int col;//列数
};
//start起始点, ...
分类:
其他好文 时间:
2014-05-13 05:25:02
阅读次数:
478