原创 C語言的藝術之——函數

好記性不如爛筆頭o(^▽^)o 系列的文章: 《C語言的藝術之——頭文件》 《C語言的藝術之——函數》 《C語言的藝術之——標識符命令與定義》 《C語言的藝術之——變量》 C語言的藝術之——註釋 C語言的藝術之——排版

原创 C語言的藝術之——標識符命令與定義

好記性不如爛筆頭o(^▽^)o 系列的文章: 《C語言的藝術之——頭文件》 《C語言的藝術之——函數》 《C語言的藝術之——標識符命令與定義》 《C語言的藝術之——變量》 C語言的藝術之——註釋 C語言的藝術之——排版

原创 用函數指針實現的一個測試框架

用函數指針實現的一個測試框架 c語言函數指針的定義形式: 返回類型 (*函數指針名稱)(參數類型,參數類型,參數類型,…); c++函數指針的定義形式: 返回類型 (類名稱::*函數成員名稱)(參數類型,參數類型,參數類型,….)

原创 排序算法總結

好記性不如爛筆頭o(^▽^)o 前言   記得之前畢業找工作的時候好好總結過,但是,工作中基本不怎麼用到這些排序算法,所以久而久之就忘了。以前寫的文章鏈接(包括詳細的思路、圖和完整代碼): 《直接選擇排序》 《冒泡排序算法》

原创 Ubuntu14.04上安裝calamari

Ubuntu14.04上安裝calamari Ubuntu1404上安裝calamari 1添加calamari源和key 2添加saltstack 2014-7 PPA 3更新source lists 4安裝SaltStac

原创 21. Merge Two Sorted Lists

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nod

原创 Linux命令——uname

好記性不如爛筆頭^_^ Linux命令uname 命令簡介 使用方法 選項詳解 示例 Linux命令——uname 命令簡介 Uname是unix name的縮寫,該命令用於打印當前系統相關信息(內核版本號、硬件架構

原创 vs2013環境下配置gtest

好記性不如爛筆頭o(^▽^)o vs2013環境下配置gtest vs2013環境下配置gtest 前言 前期準備 開始第一個demo 常見問題 前言 一開始按照這裏玩轉Google開源C++單元測試框架Google

原创 19. Remove Nth Node From End of List

Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked lis

原创 mac上hexo博客的搭建

Mac上hexo博客的搭建 Mac上hexo博客的搭建 準備工作 github homebrew nodejs hexo hexo命令行使用 建立本地站點 啓動站點 部署站點 創建新文章 發佈 更換主題 本地調試 發佈到g

原创 認識SSD

好記性不如爛筆頭o(^▽^)o 認識SSD 認識SSD 定義 FLASH顆粒 定義和分類 SLC和MLC SSD的內部邏輯劃分 SSD的表項管理 垃圾回收 SSD的磨損均衡 SSD使用壽命計算舉例 SSD和傳統磁盤的對比

原创 24. Swap Nodes in Pairs

Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should r

原创 237. Delete Node in a Linked List

Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Suppos

原创 382. Linked List Random Node

Given a singly linked list, return a random node’s value from the linked list. Each node must have the same probabi

原创 C語言的藝術之——變量

好記性不如爛筆頭o(^▽^)o 系列的文章: 《C語言的藝術之——頭文件》 《C語言的藝術之——函數》 《C語言的藝術之——標識符命令與定義》 《C語言的藝術之——變量》 C語言的藝術之——註釋 C語言的藝術之——排版