1,创建测试数据库,表;2,数据库连接对象函数sqlite3是数据库连接对象(database connection object),用来操作数据库(operator DBs);打开数据库对象函数(open db object function),int sqlite3_open(const cha...
分类:
数据库 时间:
2014-08-22 00:13:05
阅读次数:
395
使用 XML 反化时出现错误: public static TResult GetObjectFromXml(string xmlString) { TResult result; XmlSerializer serializer =...
分类:
其他好文 时间:
2014-08-21 12:55:04
阅读次数:
519
仿函数是行为类似函数的类或结构体,类或结构体重载了operator(),它比函数指针更加灵活易用。...
分类:
其他好文 时间:
2014-08-19 16:43:15
阅读次数:
245
这是 thread 的construct定义:default (1)thread() noexcept;initialization (2)template explicit thread (Fn&& fn, Args&&... args);copy [deleted] (3)thread (con...
分类:
编程语言 时间:
2014-08-19 16:23:34
阅读次数:
304
1 Protection Profile Introduction This document defines the security functionality expected to be provided by a general-purpose operating system capab...
分类:
其他好文 时间:
2014-08-18 00:14:23
阅读次数:
644
以下标程均为十进制,如改为10n进制可提高n倍速度。建议不要使用operator对运算符进行重载,虽然用起来很方便,但是NOIP中不一定能用,速度也会慢一些。高精度数大小比较function a_dy_b(a,b:arr):boolean;var i:integer;begin i:=a[0]; ....
分类:
其他好文 时间:
2014-08-17 22:31:02
阅读次数:
401
从数组array中找出第k小的元素,即经典的“线性时间选择”问题...
分类:
其他好文 时间:
2014-08-17 21:26:12
阅读次数:
276
解题报告
题意:
又是求面积并
思路:
又是求面积并,还被坑了,题目明明描述的是int坐标,用了double才过。。。
#include
#include
#include
#include
using namespace std;
struct Seg {
double lx,rx,h;
int v;
friend bool operator <(Seg...
分类:
其他好文 时间:
2014-08-17 13:07:12
阅读次数:
195
今天在调试一个页面的时候遇到一个问题,在IE9下执行得非常好的脚本,在IE8里打开的时候弹出错误:expectedidentifier,stringornumber,依照经验,应该是定义对象的时候最后一个属性末尾跟了逗号,但检查一遍后没发现有这样的情况,后来细致看了一下报错的位置,发现有定义json...
分类:
Web程序 时间:
2014-08-16 23:41:51
阅读次数:
342
解题报告
题意:
矩形面积并。
思路:
扫描线+线段树
#include
#include
#include
#include
using namespace std;
struct Seg
{
int lx,rx,h,v;
friend bool operator < (Seg a,Seg b)
{
return a.h<b.h;
...
分类:
其他好文 时间:
2014-08-16 21:10:01
阅读次数:
241