目前分類:C and C++ (177)

瀏覽方式: 標題列表 簡短摘要

bool IsOdd(int i )
{

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

http://en.wikibooks.org/wiki/More_C++_Idioms/Friendship_and_the_Attorney-Client

 

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

#include <iostream>
#include <memory>

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

http://anthony-arnold.com/2012/04/05/three-fun-cpp-techniques/

 

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

MyClass.h

#include <iostream>

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

留個記號 :

http://anthony-arnold.com/2012/04/05/three-fun-cpp-techniques/

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

typedef struct X_
{

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

using namespace std ;

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

class X
{

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

inline std::string stringify(double x)
{

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

struct datafeed_
{

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

http://www.parashift.com/c++-faq-lite/static-init-order-on-first-use.html

 

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

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) 人氣()