摘要: 本文参考 http://php.net/manual/en/types.comparisons.php。 1. isset bool isset ( mixed $var [, mixed $... ] ) Determine if a variable is set and is not NULL 阅读全文
posted @ 2018-04-11 19:55 WendellYih 阅读(194) 评论(0) 推荐(0) 编辑
摘要: https://imququ.com/post/transfer-encoding-header-in-http.html 阅读全文
posted @ 2017-07-19 12:40 WendellYih 阅读(1194) 评论(0) 推荐(0) 编辑
摘要: freature of c# Assembly Versioning Properties and Events Delegates and Events Management Indexers Conditional Compilation Simple Multithreading LINQ a 阅读全文
posted @ 2016-12-13 11:19 WendellYih 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 说明 文章内容基本来自赖世雄著的《美语音标》。 易混淆发音 [I] 与 [ɪ] 后者发音嘴角较前者放松,双唇扁平。 eat [it] it [ɪt] heat [hit] hit [hɪt] sheep [ʃip] ship [ʃɪp] [Ɛ] 与 [ɪ] 前者嘴巴要更开。 bed [bɛd] bi 阅读全文
posted @ 2016-10-23 21:57 WendellYih 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 语法规则 下面的语句都是正确的 参数列表 可以看到参数列表使用逗号分隔,而且 typed 和 untyped 均可,-> 符号用以分隔参数列表和语句。值得提一下,如果闭包只有一个参数,那么可以省略参数列表,直接使用 it 代替参数。 委托策略 闭包有三个概念:this、owner 和 delegat 阅读全文
posted @ 2016-09-16 20:42 WendellYih 阅读(321) 评论(0) 推荐(0) 编辑
摘要: #ifndef MYAUTOPTR_H#define MYAUTOPTR_Htemplateclass MyAutoPtr{private: _T* _ptr; public: typedef _T element_type; explicit MyAu... 阅读全文
posted @ 2015-11-10 22:19 WendellYih 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 快速排序的基本原理就是取序列中的一个值,使用一定的移动策略,最终使此值左侧小于该值,右侧大于该值,然后以此值为分界点使用前面的方法进行分治。下面我们直接给出代码, 1 int partition(int table[], int l, int r) 2 { 3 int i = l; 4 ... 阅读全文
posted @ 2015-10-17 21:52 WendellYih 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 下面是 LLVM 首页对 LLVM 介绍的中文翻译。LLVM 项目是一系列模块化、可重用和工具链技术的集合。不必在意它的名称,LLVM 和之前的虚拟机基本没什么关系了,然而也确实提供了对构建这些虚拟机有帮助的库。LLVM 不是首字母的缩写,它就是项目的全称。LLVM 起源于伊利诺伊大学的一个研究项目... 阅读全文
posted @ 2015-09-19 16:24 WendellYih 阅读(616) 评论(0) 推荐(0) 编辑
摘要: 使用 sstream 完成转换, 一次性转换较为容易,但是如果 std::stringstream 对象多次使用就要注意状态的清理, 就会发现,第二次输出的值并不是 12345,而是 1234。 原因是第一次 ss >> integer 执行之后,ss 就被置上了 eof 标志,所以,第二次执行 s 阅读全文
posted @ 2015-06-28 19:05 WendellYih 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: 首先是 C 的头文件和源文件,#ifndef POINT_H #define POINT_H struct point ... 阅读全文
posted @ 2015-01-18 14:54 WendellYih 阅读(3119) 评论(0) 推荐(0) 编辑