原创 GFX with SDL Lesson 1: Getting started with SDL(翻譯)

GFX with SDLLesson 1: Getting started with SDL作者:Marius Andra翻譯:heroboy 歡迎來到“GFX with SDL”的第一篇教程。在Dev-C++中使用SDL首先需要下載sd

原创 Learning boost 6--Regex 1

Learning boost 6 Regex 1 概述 模板類:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> l        

原创 Learning boost 5 -- Smart ptr

Learning boost 5<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> Smart ptr Boost中提供的5類智能指針。

原创 Learning boost 7--regex 2

Learning boost 7 regex 2 在上一篇的learning boost 中,我們已經說完了regex中的三個模板類,這一篇我們要來使用這些類。我們通過三個算法來使用正則式,regex_match、regex_search

原创 Learning boost 4 Tuple and ref

Learning boost 4<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> Tuple and ref Tuple Boost:

原创 Learning Spirit 1

Learning Spirit 1spirit是boost中的語法分析框架。使用spirit可以用來編寫語法分析程序。spirit有如下特點:l         使用遞歸下降分析程序(分析的效率不高)l         模板元編程技術實現

原创 要考試了,learning boost系列文章暫停更新

等到考試結束後在說吧!希望大家多多支持阿。我寫這些文章的原因有兩個。一是作爲自己學習boost的筆記。二是因爲網上boost的中文資料比較少,爲boost中文做點貢獻。不知道寫的怎麼樣,希望大家多提點意見。其實,我寫的每一篇文章風格都不一

原创 Learning Spirit 2

Learning Spirit 2Phase level vs. character levelparse函數有4種形式的重載。以上兩種是字符層次的parse。以上是短語層次的parse。短語層次使用一個skip parser參數來過濾輸

原创 Learning boost 3 -- string algorithm 1

Learning boost 3 string algorithm 1 簡介 string algorithm是boost中提供字符串算法的類庫。在這裏,字符串不一定是std::basic_string,也可以是其它的stl容器或是c++

原创 Learning boost 1 Serialization

Learning boost (1) Serialization 簡單的開始 Serialization的中文解釋是“串行化” 、“序列化”或者“持久化” ,就是將內存中的對象保存到磁盤中,等到程序再次運行的時候再讀取磁盤中的文件恢復原來

原创 Learning boost sp 2 -- regex語法規範(翻譯)

Learning boost sp 2<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> regex語法規範(翻譯)   這部分包含了b

原创 類似stl中排列算法的組合算法

conbination.h //combination.h #ifndef __COMBINATION_H__ #define __COMBINATION_H__ // Non recursive template function t

原创 Learning boost 2 Array

Learning boost 2 Array 簡介 boost::array是一個對c++數組的包裝類。和stl::vector不同的是array和c++數組一樣是一個靜態大小的容器。請看下面的一個例子: #include<boost/

原创 Learning boost SP 1 -- 什麼是complete type

在學習boost的過程中,我們發現在boost的文檔中,多處提及了complete type和incomplete type。到底什麼是complete type呢?經過我查找msdn,終於發現了,原來complete type是編譯器能

原创 在Windows程序中,開啓控制檯

#pragma once<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> template<int k> class _Int2