最近遇到了一个诡异的问题, 数组的数据不对, 最后发现是两个类型的大小不一样导致的.123456789101112131415161718192021222324classalloc{public:void* operatornew(size_tn){...}voidoperatordelete(v...
分类:
其他好文 时间:
2015-05-18 20:17:09
阅读次数:
162
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with...
分类:
其他好文 时间:
2015-05-18 16:00:43
阅读次数:
102
题目描述用两个栈来实现一个队列,完成队列的Push和Pop操作。 队列中的元素为int类型。class Solution
{
public:
void push(int node) {
stack1.push(node);
} int pop() {
if(stack2.empty()) {//第二个栈为空时
while(!stack1.empty()) {...
分类:
其他好文 时间:
2015-05-18 14:51:02
阅读次数:
102
分享五个对你有用的Everything搜索技巧:一, empty:(查找空文件夹);二, dupe:(查重复文档);三, 空格(与), |(或),!(非);四, e:\ (路径搜索);五, wildcards(支持通配符?单个,*可多个)等.
分类:
其他好文 时间:
2015-05-18 14:16:04
阅读次数:
95
1.\documentclass[hyperref, UTF8]{ctexart}2.\numberwithin{equation}{section} %article中让公式按章节名编号3.\pagestyle{empty} %去掉默认页码4.\textbf 加粗5.\texttt 等距6.\vs...
分类:
其他好文 时间:
2015-05-16 23:18:06
阅读次数:
166
一、stack(栈) 栈:LIFO 后进先出; 首先要指出的是,stack并非和STL的其他类模板是独立的容器,stack是自适应容器(容器适配器) stack> s; stack> s; stack> s; STL中实现的stack方法: s,empty(); s...
分类:
其他好文 时间:
2015-05-16 01:21:20
阅读次数:
112
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
编程语言 时间:
2015-05-16 00:01:23
阅读次数:
205
C++顺序容器1、C++的顺序容器包括:vector、list、deque。2、初始化顺序容器的5中方法: (1)Create an empty container: list slist; vector vec; (2)Create a container of some size...
分类:
其他好文 时间:
2015-05-15 22:41:41
阅读次数:
140
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word ...
分类:
编程语言 时间:
2015-05-15 21:14:13
阅读次数:
148
hp警告Creating default object from empty value 问题的解决方法解决方法是找到报错的位置然后看哪个变量是没有初始化而直接使用的,将这个变量先实例化一个空类。如:复制代码 代码如下:$ct = new stdClass();修改文件相应代码,如:复制代码 代码如...
分类:
其他好文 时间:
2015-05-15 19:19:47
阅读次数:
198