- 博客(8)
- 资源 (14)
- 收藏
- 关注
原创 斐波那契数列
// 斐波那契数列.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include using namespace std; long long Fobinacci(unsigned int n){//用递归的方式,容易理解,但是效率低下,时间复杂度以n的指数增长。 if (n return 0; if (n == 1)
2014-06-14 16:23:18 644
原创 QucikSort
// qsort.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include void print(int data[],int n){ int i=0; for(;i printf("%d ",data[i]); printf("\n");
2014-06-13 16:17:02 537
转载 java对文件的操作
File类常见方法: 1:创建。 boolean createNewFile():在指定目录下创建文件,如果该文件已存在,则不创建。而对操作文件的输出流而言,输出流对象已建立,就会创建文件,如果文件已存在,会覆盖。除非续写。 boolean mkdir():创建此抽象路径名指定的目录。 boolean mkdirs():创建多级目录。 2:删除。 bo
2014-06-05 17:28:38 501
原创 统计输入的整数区间内回文数的个数
// 回文数.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include using namespace std; bool isHuiWen(int num){ int temp; int sum = 0; temp = num; while (num) { sum = sum * 10 + num % 1
2014-06-03 20:08:10 2689 1
原创 单链表从尾到头输出
void ReverseList(SingleList &L){//从尾到头输出单链表(剑指offer) int s[100];、 int pos = 0; LinkNode *current = L.getHead()->link; while (current != NULL) { s[pos++] = current->data; current = current->link
2014-06-03 16:09:16 688
原创 Java字符输入与输出
字符输入:public String readtxt() { char[] c = new char[20]; File s = new File("C:\\Users\\Administrator\\Desktop\\a.txt"); try { Reader in = new FileReader(s); try { // int n=-1; in.read(c); i
2014-06-02 13:59:31 1024
jsp+servlet简单分页实现
2015-04-12
jsp_servlet登录注册例子
2014-12-09
我的java项目之生活旅游APP
2014-09-24
Android模拟串口与笔记本通信
2014-08-12
Git-1.9.4-preview20140611.exe
2014-08-01
基于android的智能聊天机器人
2014-07-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人