markdown测试-C++代码着色

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

#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();
}
};
posted @ 2014-07-22 17:55  itnews  阅读(747)  评论(0)    收藏  举报