A Piece of Sunshine


檐下窗欞斜映枝椏 與你席地對座飲茶

Notes from C Primer Plus / C Primer Plus笔记

Coming Soon….

Notes from C Traps and Pitfalls / C陷阱与缺陷笔记

Chapter 1: Lexical Pitfalls (词法陷阱) Notes A character enclosed in single quotes is just another way of writing the integer that corresponds to ...

Example of iOS VoIP Notification / iOS VoIP Notification实例

这篇文章翻译整理自Pierre-Marc Airoldi的iOS 8 VoIP Notifications和M Penades关于PushKit实现的回答,加入了我自己的文件设定,以及代码的更新,以方便读者更简单便捷的实现PushKit的学习。 在iOS8中,苹果引进了一种可以用在VoIP应...

Linux Shell Programming / Linux Shell编程

My First Shell The first line must be start with #! #!/bin/bash # print hello,world echo "hello,world!" 脚本的执行需要一定的权限: chmod +x 脚本名字 #...

Classical Programming Problem - Bitwise Operation / 经典编程问题 - 位运算

1.判断奇偶 只要根据最未位是0还是1来决定,为0就是偶数,为1就是奇数。因此可以用if ((a & 1) == 0)代替if (a % 2 == 0)来判断a是不是偶数。 下面程序将输出0到100之间的所有奇数。 for (i = 0; i < 100; ++i) i...

Classical Programming Problem - Tree / 经典编程问题 - 树

Baisc Tree Structure / 基本的树结构 public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.v...

Classical Programming Problem - Linked List / 经典编程问题 - 链表

Baisc Singly Linked List / 基本的单链表 public class ListNode { int val; ListNode next = null; ListNode(int val) { this.val = val; } } Q1 - Rem...

Algorithm(1)-Greedy Algorithm / 算法(1)-贪心算法

**------English (英文)------**