markdown功能测试:C++代码着色

C++代码如下:

#include <iostream>

template <typename T> struct Base {
    void f() {
        std::cerr << "Base<T>::f\n";
    }
};

template <typename T> struct Derived : Base<T> {
    void g() {
        std::cerr << "Derived<T>::g\n ";
        f();
    }
};

来自:http://home.cnblogs.com/group/topic/70481.html

posted @ 2014-07-22 21:04  博客园团队  阅读(4234)  评论(3编辑  收藏  举报