- 博客(22)
- 资源 (1)
- 收藏
- 关注
原创 自己手写一个 SpringMVC 框架
前端框架很多,但没有一个框架称霸,后端框架现在Spring已经完成大一统.所以学习Spring是Java程序员的必修课.Spring 框架对于 Java 后端程序员来说再熟悉不过了,以前只知道它用的反射实现的,但了解之后才知道有很多巧妙的设计在里面。如果不看 Spring 的源码,你将会失去一次和大师学习的机会:它的代码规范,设计思想很值得学习。我们程序员大部分人都是野路子,不懂什么叫代码规范。...
2018-03-25 21:30:27 291
原创 Java如何连接MySQL数据库进行操作
在实际使用的应用程序中,大部分是需要利用数据库进行数据的查询与操作,因为数据库支持强大的SQL语句,可进行事务处理等。接下为大家介绍如何在Java应用程序中使用JDBC提供的API和数据库进行信息交付。首先是需要安装好MySQl数据库,请参考另一篇文章:Windows10安装MySql数据库把安装好的数据库安装好,建立好数据库、创建表后,还需要通过JDBC来操作数据库,Java通过使用JDBC提供...
2018-03-25 21:25:01 618
转载 在eclipse中建立lua开发环境
在Eclipse中开发lua代码LuaEclipse 是 Eclipse 用来开发 Lua 程序的插件,功能比较完备,它可以实现编Lua脚本代码、语法高亮、编译错误提示,代码和注释的折叠、调试等。LuaEclipse:http://luaforge.net/projects/luaeclipse/一、LuaEclipse插件安装下载LuaEclipse的离线安装包,下载地址:LuaEclipse将...
2018-03-25 21:23:35 3951
原创 JavaScript大全
1. viewport:也就是可视区域。对于桌面浏览器,我们都很清楚viewport是什么,就是出去了所有工具栏、状态栏、滚动条等等之后用于看网页的区域,这是真正有效的区域。由于移动设备屏幕宽度不同于传统web,因此我们需要改变viewport;实际上我们可以操作的属性有4 个:复制代码代码如下:width - // viewport 的宽度
2017-10-31 11:16:53 322
转载 SQL基本语句
基础一、基础 1、说明:创建数据库 CREATE DATABASE database-name 2、说明:删除数据库 drop database 数据库名 3、说明:备份sql server --- 创建 备份数据的 device USE master EXEC sp_addumpdevice 'disk', 't
2017-09-11 10:17:11 495
原创 C语言-数据结构-排序
#include #include #define maxsize 100typedef int datatype;typedef struct{ datatype num; char name[20]; float china; float math; float english;}recordtype;typedef
2017-05-25 17:57:51 363
原创 C语言-数据结构-线性表检索和二分检索
#include #include #define maxsize 100typedef int datatype;typedef struct{ datatype data[maxsize]; ///数组 int len; ///线性表长度}seqlist;///顺序查找int seqsearch1(seqlist l,datatype
2017-05-25 17:56:12 683
原创 C语言-数据结构-prim算法求最小生成树
#include #include #include "ljjz.h"typedef struct edgedata{ int beg,en; int length;}edge;void peim(Mgraph g,edge tree[M-1]){ edge x; int d,min,j,k,s,v; for(v=1;v
2017-05-25 17:54:58 2251
原创 C语言-数据结构-克鲁斯卡尔kruskal
#include #include //#include "ljjz.h"//求解最小生成树算法typedef struct edgedata{ int beg,en;///边顶点序号 int length;///边的权值长}edge;///对边向量快速排序///边向量edges边向量左右下标left rightvoid QuickSort(
2017-05-25 17:54:03 511
原创 C语言-数据结构-图的遍历
#include #include #include "ljb.h"int visited[M];///图的遍历void dfs(linkedgraph g,int i){ edgenode *p; printf("visit vertex:%c\n",g.adjivex[i].vertex); visited[i]=1; p=g.a
2017-05-25 17:52:47 1283
原创 C语言-数据结构-二叉树
#include #include /*结点的度:结点拥有的子女数树的度:树中所有结点度的最大值叶子结点(终端结点):度为0的结点树枝:树中连续两个结点的线段路径:路径的长度等于所经过的树枝条数树的深度(高度):树中结点的最大层数一颗非空二叉树的第i层上至多有(2的(i-1)次方)个结点(i>=1)满二叉树:结点个数为2的h-1方完全二叉树:最后一层均向
2017-05-25 17:51:31 412
原创 C语言-数据结构-树
#include #include /*树的遍历1.树的前序遍历先访问跟结点,在从左到右2.树的后序遍历先从左到右,在访问跟结点3.层次遍历左到右*////前序void preoder(tree p){ int i; if(p!=NULL) { printf("%c",p->data);
2017-05-25 17:50:04 406
原创 C语言-数据结构-插入
#include #include struct node{ int date; struct node *next;};struct node* creattable(int n)///n节点个数{ int i,a; struct node *head,*p1,*p2; head = NULL; ///头结点为空
2017-05-24 23:17:24 796
原创 C语言-数据结构-链串插入删除链接
#include #include ///链串插入和删除和连接///adc mn dfetypedef char datatype;typedef struct node{ datatype data; struct node *next;}node;typedef node *linkstr;///创建字符串void creates
2017-05-24 23:11:57 1886
原创 C语言-数据结构-链栈
#include #include int text(char *t,char *p){ int i=0,j=0,k=0; while(i { k=1; while(j { if(t[i]==p[i+j]) j++;
2017-05-24 23:10:31 299
原创 C语言-数据结构-创建栈
#include #include #define maxsize 100///创建栈typedef int data;typedef struct{ data *base; //栈底 data *top; //栈顶 int stacksize; //栈大小}stack;//创建栈(初始化)void init(stack *s)
2017-05-24 23:09:13 11034 3
原创 C语言-数据结构-双链表插入查找
#include #include ///双链表typedef int datatype;typedef struct node{ datatype data; struct node *prior,*next;}body;body *table(){ int i; body *head,*p,*s,*end; pr
2017-05-24 23:06:52 387
原创 双链表
#include #include typedef struct node{ int data; struct node *prior,*next;}body;body *table(int n){ int i; body *p,*head,*s; head=(body *)malloc(sizeof (body));
2017-05-23 21:51:10 236
原创 C语言-数据结构-单链表倒置
/*#include #include //单链表倒置typedef struct node{ int data; struct node *next;}body;body *table(){ int i,a; body *head,*p1,*p2; head=NULL; for(i=0;;i++)
2017-05-23 21:30:52 3234
原创 C语言-数据结构-链表删除
#include #include struct node{ int date; struct node *next;};struct node *table(int n){ int i,a; struct node *head,*p1,*p2; head=NULL; for(i=n;i>0;i--) {
2017-05-18 18:39:55 474
原创 C语言-数据结构-链表合并无需输入结点
#include #include typedef struct node{ int date; struct node *next;}body;body *table(){ int i,a; body *head,*p1,*p2; head=NULL; for(i=0;;i++) { p1
2017-05-18 18:38:11 271
原创 C语言-数据结构-结点链表
#include #include //顺序结构void myinsert(int *a,int n){ int i,num,ipos; printf("please inputs num or ipos:"); scanf("%d,%d",num,ipos); if(ipos>n||ipos { printf("
2017-05-18 18:36:40 444
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人