下面实现的是一个简单的单链表功能不多,学习使用#pragma once#include
using namespace std;class ListEx{private: struct Node { Node* next; int data;
N...
分类:
编程语言 时间:
2014-06-11 10:06:26
阅读次数:
246
题目
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.
方法
遍...
分类:
其他好文 时间:
2014-06-11 00:41:44
阅读次数:
207
如果在使用javascript的时候涉及到event处理,就需要知道event在不同的浏览器中的差异,主要的JavaScript的事件模型有三种(参考《Supporting
Three Event Models at Once》),它们分别是NN4、IE4+和W3C/Safar。1. window....
分类:
Web程序 时间:
2014-06-09 16:31:54
阅读次数:
304
给出一段数据,然后要更新单个数据,会询问一段数据中的最大值。
又是一道分段树操作。渐渐熟手了。
#pragma once
#include
#include
using namespace std;
class IHateIt_1754_1
{
static const int SIZE = 200001;
int *segTree; //不要使用segTree[SIZE<<2]...
分类:
其他好文 时间:
2014-06-08 15:40:21
阅读次数:
208
一个简单需求:用C++调用Jar包。
实现基本思路:调用CreateProcess API来启动cmd.exe运行jar包。
调用类CJarAppCall。
JarAppCall.h
#pragma once
class CJarAppCall
{
public:
CJarAppCall(void);
~CJarAppCall(void);
/*
...
分类:
编程语言 时间:
2014-06-08 09:20:20
阅读次数:
266
1.Update Value On: 指明了参数在何时编号1.1 Each Occurrence :
只要发现该参数就重新取值;1.2 Each iteration :每次反复都要取新值(各个并发会共享同一个值,用于多次引用参数且相关的情况);1.3 Once
:在所有的反复中都使用同一个值(仅在场...
分类:
其他好文 时间:
2014-06-06 14:02:47
阅读次数:
198
注意题目这句话,Once you have each type of candies in a
box, you want to pack those boxes into larger boxes, until only one box
remains.两个box合并后必须放入更大一个盒子题目的有...
分类:
其他好文 时间:
2014-06-06 13:09:50
阅读次数:
213
Given a sorted array, remove the duplicates in
place such that each element appear only once and return the new length.Do not
allocate extra space for...
分类:
其他好文 时间:
2014-06-06 06:53:19
阅读次数:
347
在使用swftools转换pdf 到swf的时候报错,有如下说明:if the pdf
contains too many images / shapes, pdf2swf will fail with this error :ERROR
Thisfileistoocomplextorender-S...
分类:
其他好文 时间:
2014-06-05 21:24:54
阅读次数:
310
//#include #pragma once#include
"cocos2d.h";#include "iconv\include\iconv.h"//#if (CC_TARGET_PLATFORM ==
CC_PLATFORM_WIN32) // 编译链接的时候指定静态库 //#pragm.....
分类:
其他好文 时间:
2014-06-05 19:25:43
阅读次数:
300