2017年4月11日

POI框架实现创建Excel表、添加数据、读取数据

摘要: public class TestPOI2Excel {//创建2003版本Excel用此方法 @Test public void testWrite03Excel() throws Exception { //创建工作簿 HSSFWorkbook workbook = new HSSFWorkbo 阅读全文

posted @ 2017-04-11 20:01 VbisoWen 阅读(355) 评论(0) 推荐(0)

2017年3月18日

单链表(以书本信息为例)

摘要: #include<iostream>#include<string>#include<iomanip>#include<fstream>#include<cstdlib> using namespace std; #define OK 1#define ERROR 0#define OVERFLOW 阅读全文

posted @ 2017-03-18 23:15 VbisoWen 阅读(390) 评论(0) 推荐(0)

2017年3月16日

顺序表(以书本信息为例)

摘要: #include<iostream>#include<fstream>#include<string>#include<iomanip> using namespace std; #define OK 1#define ERROR 0#define OVERFLOW -2typedef int St 阅读全文

posted @ 2017-03-16 21:47 VbisoWen 阅读(497) 评论(0) 推荐(0)

2017年3月15日

Ackerman 函数 (双递归函数)

摘要: public static int ackerman(int n,int m){ if(n==1&&m==0){return 2;} else if(n==0&&m>=0) {return 1;} else if(n>=2&&m==0) {return n+2;} else {return acke 阅读全文

posted @ 2017-03-15 22:09 VbisoWen 阅读(432) 评论(0) 推荐(0)

简单 fibonacci 函数

摘要: public static int fibonacci(int n){ if(n<=1) return 1; else { return fibonacci(n-1)+fibonacci(n-2); } } 递归函数 n = 1 时 F(n)=1 n > 1 时 F(n)=F(n-1)+F(n-2) 阅读全文

posted @ 2017-03-15 21:56 VbisoWen 阅读(201) 评论(0) 推荐(0)

导航