您的位置:首页 > 编程语言 > C语言/C++

打印菱形,C++模板元版

2009-06-09 08:13 225 查看
代码:

template<int x>
struct Abs
#pragma pack(push , 1 )
template<int num ,int x ,int y>//x行数这是多少行,y递归用第几个元素
struct line
template<int num , int x>
struct line<num,x,0>
template<int num, int x , int y>//x行数,不变,y递归用
struct Row
template<int num , int x>
struct Row<num,x , 0>
template<int x>
struct test
#pragma pack(pop )
int main(int argc, char* argv[])

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/akirya/archive/2007/01/18/1486438.aspx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: