摘要: 思路: 用n位字符数组表示n位数,通过递归的方式逐层(位)遍历,递归终止时打印。 1 #include "stdio.h" 2 #include "string.h" 3 4 //打印“数字” 5 void printNum(char* number) 6 { 7 //设置前导零状态为开... 阅读全文
posted @ 2015-06-19 21:52 tjuloading 阅读(169) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 using namespace std; 4 5 template class SQueue 6 { 7 public: 8 SQueue():cnt(0){}; 9 10 void push(const T& node);1... 阅读全文
posted @ 2015-06-19 16:21 tjuloading 阅读(134) 评论(0) 推荐(0)