标准的写法空简化后的宏/**************************************************************/// 运行一次#undef XY_ONCE_BEGIN#define XY_ONCE_BEGIN( __name ) \static dispatc....
分类:
其他好文 时间:
2014-07-22 00:12:35
阅读次数:
176
There is a meaning for wings that cannot fly,it's a previous memory of when you once flew through the sky.——Anonymous。 这个夏天看的第一部关于夏天的动漫,记忆中,观铃仰望天...
分类:
其他好文 时间:
2014-07-19 21:18:36
阅读次数:
236
PHPExcel下载地址:http://phpexcel.codeplex.com/导入PHPExcel.php或者其他文件require_once 'PHPExcel.php';////require_once'PHPExcel/Writer/Excel5.php'; // 用于其他低版本xls/...
分类:
Web程序 时间:
2014-07-19 17:07:05
阅读次数:
273
此文主要解决的问题是php下的web服务传递和返回复杂类型(自定义类型)该如何构建以及其他程序客户端如何来调用。
第一步:用NuSOAP组件来构建基于php的webservice
下载NuSOAP组件,在创建基于php的webservice时需要引用,代码如下,很简单直观,有注释就不多解释了:
require_once ('lib/nusoap.php');
// 返...
分类:
编程语言 时间:
2014-07-19 14:03:01
阅读次数:
274
Wall
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 29183
Accepted: 9768
Description
Once upon a time there was a greedy King who ordered his chief Archit...
分类:
其他好文 时间:
2014-07-19 02:45:15
阅读次数:
266
Oulipo
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 22295
Accepted: 8905
Description
The French author Georges Perec (1936–1982) once wrote a book, La...
分类:
其他好文 时间:
2014-07-17 19:23:57
阅读次数:
278
尝试使用wptree来进行xml解析,又一次失败了,可以正常读取正常输出,但是使用wptree进行节点读取失败(乱码)请看源码:DealXml.h 1 #pragma once 2 3 #include 4 5 #include 6 7 struct TestData 8 { 9 ...
分类:
其他好文 时间:
2014-07-16 15:13:45
阅读次数:
225
/*
L - 贪心 基础
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit
Status
Description
Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major...
分类:
其他好文 时间:
2014-07-15 10:16:14
阅读次数:
201
iOS 的单例模式 dispatch_once
有些变量只需要初始化一次(如从文件中读取配置参数,读取设备型号等等),可以使用dispatch_once来进行读取优化,保证只调用API一次,以后就只要直接访问变量即可.
WeatherClient.h
#import "AFHTTPClient.h"
@interface WeatherClient : AFHTTPClient
+(WeatherClient *)sharedClient;
@end
WeatherClient.m...
分类:
移动开发 时间:
2014-07-14 18:45:46
阅读次数:
251
描述
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 another array, you must do this in ...
分类:
其他好文 时间:
2014-07-14 13:46:43
阅读次数:
229