http://stackoverflow.com/questions/24860334/c-demo-programming-confusing-for-class-implement

 

hedgezzz 發表在 痞客邦 留言(0) 人氣()

http://www.parashift.com/c++-faq-lite/calling-virtuals-from-ctors.html

 

hedgezzz 發表在 痞客邦 留言(0) 人氣()

class Ball {
public:

hedgezzz 發表在 痞客邦 留言(0) 人氣()

#include <iostream>
#include <string>

hedgezzz 發表在 痞客邦 留言(0) 人氣()

上篇 使用 libevent 在 timer 使用了兩個 struct event_base 在不同的 thread 執行 , 

看了 http://rxwen.blogspot.tw/2012/11/user-event-in-libevent.html 發現可以使用以下方式讓

hedgezzz 發表在 痞客邦 留言(0) 人氣()

#include <iostream>
#include <vector>

hedgezzz 發表在 痞客邦 留言(0) 人氣()

#include <iostream>
#include <memory>

hedgezzz 發表在 痞客邦 留言(0) 人氣()

#define COUNT_ARGS(...)     PP_NARG_IMPL(__VA_ARGS__,PP_RSEQ_N( ) )
#define PP_NARG_IMPL(...)   PP_ARG_N(__VA_ARGS__)

hedgezzz 發表在 痞客邦 留言(0) 人氣()

template<typename Cont>
typename Cont::const_iterator findNull(const Cont &c)

hedgezzz 發表在 痞客邦 留言(0) 人氣()

http://alexbowe.com/dry-function-pointers-in-c/

 

hedgezzz 發表在 痞客邦 留言(0) 人氣()