Default

Blog

View archive →
Cover illustration for Implicit conversions
translating

Implicit conversions

该博文翻译自Implicit conversion

Cover illustration for Multitasking Management in the Operating System Kernel
translating

Multitasking Management in the Operating System Kernel

这篇文章翻译自KUKURUKU.

Cover illustration for iostream用法
cpp

iostream用法

iostream是C++中一个比较复杂的库,其设计的时候还应用了为人所诟病的钻石继承。在GoNative大会上,有人提问iostream那么复杂,而且相对于C的库函数,其效率相对低,为什么还要将其一直留在标准中。这个问题得到了如下回答(个人总结):

Cover illustration for C++中动态内存分配
cpp

C++中动态内存分配

在C++语言中,总共有5种内存分配区域:栈,堆(heap),自由存储区(free store),常量存储区,全局(静态)存储区。其中堆是用malloc/free一对系统库函数来管理动态内存的申请和释放,自由存储区是用new/delete一对操作符来动态管理内存的分配和释放。new/delete...

Cover illustration for C++中模板的学习
cpp

C++中模板的学习

C++中的模板是C++中实现元编程的一种主要途径。元编程,即编写程序的程序。维基百科上说: Metaprogramming is the writing of computer programs that write or manipulate other programs (or thems...

Cover illustration for sizeof的总结
cpp

sizeof的总结

C/C++,Java中都有字节对齐的概念。字节对齐的目的是加快CPU的访问速度,因为将字节对齐的相应长度的整数倍位置上,CPU取数据会更快。为什么呢?

Cover illustration for Remove comments in java or C++
ruby

Remove comments in java or C++

近段时间其实也没有做什么具体的事,只是抽了很多时间看了很多书。虽然自己也很紧张,但是在这种忙里偷闲的时间里也不忘学学脚本。

Cover illustration for Closures in Ruby
ruby

Closures in Ruby

Closures in Ruby @(Technology)[Ruby|Closure]

Cover illustration for Implementation of A star algorithm
algorithm

Implementation of A star algorithm

a* 算法在人工智能领域应用比较广泛。这几天在USTC ACM上刷problem 1012,题中需要解决8-puzzle问题,有两种解法,一种是BFS,另外一种就是a*算法。之前在Java上实现过,但是当时是利用Princeton的一个类:MinPQ,最小的优先级队列。

Cover illustration for Code Rush观后感
movies

Code Rush观后感

在等待吃饭的间隙把电影《Code Rush》看了一下,这个电影也是Jeff Atwood和阮一峰推荐的。故事的主要内容时Netscape将浏览器代码开源为Mozilla的过程。

Looking for something specific? Browse every article by year, category, or topic.
Explore the archive

© chunyang. Some rights reserved.

Using the Chirpy theme for Jekyll.

stats counter unique visitors since April 2019