mongoose 数据库操作3...
分类:
数据库 时间:
2014-05-05 13:08:02
阅读次数:
370
提出疑问
当我们新建一个Qt的图形工程时,你有没有对如下代码感到好奇?MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow) 派生类继承的基类不同以往,竟然是带有参数的,那么这个怎么理解呢?...
分类:
编程语言 时间:
2014-05-03 16:27:01
阅读次数:
344
auto root = Dictionary::create();
auto string = String::create("string element value");
root->setObject(string, "string element key");
auto array = Array::create();
...
分类:
其他好文 时间:
2014-05-03 16:27:48
阅读次数:
380
转战单调队列,争取省赛前做完。。。。
这个题是很裸的单调队列。
不能用stl让人很蛋疼。。。。
就是用一个队列保存当前队伍的信息,如果来了一个大的,就把前面的小的挤掉。
#include
#include
#include
#include
#include
#include
using namespace std;
#define maxn 55000
#define INF 99999...
分类:
其他好文 时间:
2014-05-03 16:28:35
阅读次数:
342
1.自定义圆形控件github地址:https://github.com/hdodenhof/CircleImageView主要的类:package de.hdodenhof.circleimageview;
import edu.njupt.zhb.main.R;
import android.content.Context;
import android.content.res.TypedAr...
分类:
移动开发 时间:
2014-05-03 23:56:53
阅读次数:
3250
java字符流writer、reader基本操作及理解...
分类:
编程语言 时间:
2014-05-03 23:57:18
阅读次数:
472
兼容的动态载入JS
屌丝就是悲剧,五一还得宅家里敲代码专研技术。
说起动态载入JS,搞web的肯定不陌生,著名的YUI库就有强大的模块化的动态载入JS机制。在代码量不断庞大的今天,动态载入JS作用还是很明显的。其实这门技术已经很古老了,但是发现网络上很多资料也同样很古老。诶,没法,自立更生吧,人生总要不断积累的,更何况作为一个程序猿呢。
关于动态JS大家比较关注的无非就两点,兼容性如何?如何...
分类:
Web程序 时间:
2014-05-03 23:57:44
阅读次数:
423
题目描述:
Description
Furik loves math lessons very much, so he doesn't attend them, unlike Rubik. But now Furik wants to get a good mark for math. For that Ms. Ivanova, his math teacher, gave him...
分类:
其他好文 时间:
2014-05-03 16:45:31
阅读次数:
234
1.cmp是比较指令,cmp...
分类:
其他好文 时间:
2014-05-03 16:46:20
阅读次数:
268
Super Jumping! Jumping! Jumping!
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 6 Accepted Submission(s) : 5
Font: Times New Roman | Verdan...
分类:
其他好文 时间:
2014-05-03 16:47:07
阅读次数:
262
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
For exa...
分类:
其他好文 时间:
2014-05-03 15:47:53
阅读次数:
289
Python中怎么编写类
Last Edit 2013/5/2
先看一个例子:
#person.py
class person:
"""class to representaion a person"""
def __init__(self,name,age):
self.name=name
if 0<age<=150:
...
分类:
编程语言 时间:
2014-05-03 15:48:31
阅读次数:
390
Chef wrote some text on a piece of paper and now he wants to know how many holes are in the text. What is a hole? If you think of the paper as the plane and a letter as a curve on the plane, then each...
分类:
其他好文 时间:
2014-05-03 15:49:18
阅读次数:
412
$.方法
(1)$.merge(first, second)
合并两个数组或类数组,将第二个数组添加到第一个数组的末尾
(2)$.grep(elems, callback, invert)
使用callback对elems进行过滤,如果invert设置为true.则返回保留callback返回值为false的元素数组,如果invert设置为false则返回c...
分类:
Web程序 时间:
2014-05-03 16:37:05
阅读次数:
333
给定一个单链表,只给出头指针h:
1、 如何判断是否存在环?
证明:
slow首次在A点进入环路时,fast一定在环中的B点某处。设此时slow距head长为x,B点距A点长度为y,环周长为s。因为fast和slow的步差为1,所以slow前行距离为y的时候,恰好会被fast在M点追上。因为y
//判断单链表是否有环
public static boolean hasCyc...
分类:
其他好文 时间:
2014-05-03 16:38:30
阅读次数:
325
hdu 1163 Eddy's digital Roots 九余数定理...
分类:
其他好文 时间:
2014-05-05 13:03:16
阅读次数:
232
SVM支持向量机的SMO方法实现
操作简便,效果直观,功能单一。
有助于理解SMO过程,以及惩罚因子对分类的影响。...
分类:
其他好文 时间:
2014-05-05 13:03:41
阅读次数:
232
要在开发板上的Linux开机启动自己的程序,想着简单,却改了很久,绕了一圈下来确实很简单,只是自己一开始太过迂腐吧!
如果不想看完全文,这一段应该就够了,从我使用的开发板的角度讲,一般只要在/etc/init.d/rcS中加入你的程序或者脚本命令就可以实现开机自动运行;想在超级终端输入回车,登录后执行,则可以在/etc/profile中加入命令;如果想去掉每次开机完后的“Please press...
分类:
系统相关 时间:
2014-05-05 13:04:14
阅读次数:
525
typename与class都可以用作模板形参定义的关键字,两者无异~~
可是,typename的用途并非仅限于此,如下面的代码:
{CSDN:CODE:323655}
在上述代码中,iter的类型是C::const_iterator,实际的类型取决于C的类型。const_iterator 同时也是C内部的typedef 类型名。 但是,在此处,编译器的行为不会是你预期的...
分类:
编程语言 时间:
2014-05-04 00:19:35
阅读次数:
330
TEX Quotes
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 8505
Accepted: 4460
Description
TEX is a typesetting language developed by Donald Knuth. It ta...
分类:
其他好文 时间:
2014-05-03 15:40:11
阅读次数:
296