#ifndef __QUEUE_H__#define __QUEUE_H__#include #include #include /* * Queues can have more than one producer but only one consumer. * This means that ...
分类:
其他好文 时间:
2014-08-17 14:14:22
阅读次数:
185
C. Petya and SpidersLittle Petya loves training spiders. Petya has a boardn?×?min size. Each cell of the board initially has a spider sitting on it. A...
分类:
其他好文 时间:
2014-08-17 01:04:31
阅读次数:
245
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of ...
分类:
其他好文 时间:
2014-08-16 12:37:20
阅读次数:
219
One day, Twilight Sparkle is interested in how to sort a sequence of integersa1,?a2,?...,?anin non-decreasing order. Being a young unicorn, the only o...
分类:
其他好文 时间:
2014-08-15 20:55:49
阅读次数:
206
We have just released the 1st GA version of the MyBatis Memcached adapter. The beta has bee around for almost one year and only?one issue?was reported. 这个memcache的整合是官方发布的版本,在网上找...
分类:
其他好文 时间:
2014-08-15 18:09:59
阅读次数:
392
Problem Description
Sally Jones has a dozen Voyageur silver dollars. However, only eleven of the coins are true silver dollars; one coin is counterfeit even though its color and size make it indist...
分类:
其他好文 时间:
2014-08-15 17:54:39
阅读次数:
322
a storage class can only be specified for objects and functionsextern修饰一个struct报错,错误原因如上,C++中存储类修饰符有auto、register、extern、static,这几种修饰符只能修饰对象或者函数,这里用ex...
分类:
系统相关 时间:
2014-08-15 17:27:59
阅读次数:
230
背景知识MongoDB 是用C++写的, 开源的, NoSQL(Not Only SQL)文档数据库.特点:high performance(高性能), high availability(高可靠性), and automatic scaling(自动调整).结构与JSON类似.安装1. 下载安装包...
分类:
数据库 时间:
2014-08-15 14:08:08
阅读次数:
312
1、Auto_Build_EAS.bat
@echo?off?
@echo?-------------------------
@echo?Only?change?variables?below
set?MSBuildDir=%WINDIR%\Microsoft.NET\Framework\v3.5
set?BuildType=Release
set?Working...
分类:
其他好文 时间:
2014-08-15 13:03:39
阅读次数:
273
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diag...
分类:
其他好文 时间:
2014-08-15 09:32:37
阅读次数:
200