<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[joeycom2的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/joeycom2</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; joeycom2]]></copyright><item><title><![CDATA[Access denied for user '=root'@'localhost' (using password: YES)解决方案&&修改mysql默认引擎]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/80854251</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/80854251</guid><author>joeycom2</author><pubDate>Fri, 29 Jun 2018 11:21:14 +0800</pubDate><description><![CDATA[问题一

问题描述：Caused by: java.sql.SQLException: Access denied for user ‘=root’@’localhost’ (using password: YES) 
在连接数据库时，用户名和密码不正确，网上的方法多是让我修改连接数据库密码，但我将密码从123456改为111111.问题还未能解决，仔细看了xml中配置数据源的代码后！呵呵！多写了...]]></description><category></category></item><item><title><![CDATA[neusoft数据库操作（三）]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/80828278</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/80828278</guid><author>joeycom2</author><pubDate>Wed, 27 Jun 2018 14:12:05 +0800</pubDate><description><![CDATA[今天讲的是数据库操作的动态查询，即根据前台传来的值，动态拼接SQL语句。对于传入参数有两种方法：


封装成对象进行操作
封装成Map进行操作


封装成对象操作方法

定义传入的参数类型为CollectionMap，并封装成类，使用时创建对象，往里传值就好。 
使用的是标签，常用的有以下四个：


if
choose（when,otherwise）
trim(where,set)
foreach...]]></description><category></category></item><item><title><![CDATA[neusoft数据库操作（二）]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/80820388</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/80820388</guid><author>joeycom2</author><pubDate>Tue, 26 Jun 2018 21:49:30 +0800</pubDate><description><![CDATA[今天老师的声音一如既往的好听⊙▽⊙一如既往的6个小时的学习，一如既往的我~ 
今天布置的作业是：


构建数据表： 部门表(deptno,dname,loc) 
员工表(empno,ename,job,hiredate,salary,deptno),
查询部门下的员工姓名\工种\薪水


实验结果应如图所示： 


实验要点：


清楚各数据表的关联，是一对一，一对多（多对一）抑或是多对多
在ma...]]></description><category></category></item><item><title><![CDATA[小项目之上机实验监听]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/80806729</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/80806729</guid><author>joeycom2</author><pubDate>Mon, 25 Jun 2018 20:26:49 +0800</pubDate><description><![CDATA[总体需求：这次的项目是关于记录学生上机情况，将学生上机敲击的键记录下来，通过邮件的方式发送到教师邮箱，以检测学生是否认真完成上机任务。 
学生端界面如下图 
 
详细需求如下：


为了简化学生端的操作，学生不必填写两个邮箱，而是设置收发邮件使用同一个邮箱，每个老师申请一个邮箱，作为所有数据的收发。为了区分每次实验的不同，在备注信息处填写相应的信息。
将学生填写的信息与键盘记录的信息封装成邮件进行...]]></description><category></category></item><item><title><![CDATA[neusoft数据库操作（一）]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/80806242</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/80806242</guid><author>joeycom2</author><pubDate>Mon, 25 Jun 2018 19:38:17 +0800</pubDate><description><![CDATA[上课时间6小时，全程由声音超级好听的老师讲课，而且她很有耐心的帮我旁边的同学找bug。奈斯！ 
这次讲课的内容是使用xml配置，实现数据库操作。使用的框架是SSM，对于我来说，算比较简单的~毕竟之前Dr.zhou教过SSH的知识。 
—————————分界线——————————— 
实验结果： 
在控制台输出数据表中的信息。如下图 
 
project的文件目录结构： 


实验要点： 
1.会写...]]></description><category></category></item><item><title><![CDATA[hdu2181-哈密顿绕行世界]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/69378776</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/69378776</guid><author>joeycom2</author><pubDate>Thu, 06 Apr 2017 10:31:46 +0800</pubDate><description><![CDATA[#include<stdio.h>
#include<algorithm>
#include<math.h>
#include<string.h>
#include<queue>
#define maxn 21
#define INF 0xfffffff
using namespace std;
bool map[maxn][maxn];
bool used[maxn];
int res[maxn]]]></description><category></category></item><item><title><![CDATA[hdu 2102-搜索]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/69174867</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/69174867</guid><author>joeycom2</author><pubDate>Tue, 04 Apr 2017 19:53:34 +0800</pubDate><description><![CDATA[#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int n,m,t,xx[4][2]={{1,0},{0,1},{-1,0},{0,-1}},xp,yp,visit[2][11][11];  //xp、yp是终点坐标
char map[2][11][11];  //因为有两层，所以用三维
vo]]></description><category></category></item><item><title><![CDATA[最大流]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/66478179</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/66478179</guid><author>joeycom2</author><pubDate>Sun, 26 Mar 2017 19:23:47 +0800</pubDate><description><![CDATA[套题链接：https://vjudge.net/contest/126475#overview 
A题-基础模板题
#include<stdio.h>
#include<algorithm>
#include<math.h>
#include<string.h>
#include<queue>
#define maxn 210
#define INF 0xfffffff
using namespac]]></description><category></category></item><item><title><![CDATA[简单DP]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/62229490</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/62229490</guid><author>joeycom2</author><pubDate>Wed, 15 Mar 2017 16:40:28 +0800</pubDate><description><![CDATA[套题链接：https://vjudge.net/contest/152991#overview 
A题–最少拦截系统：问题的实质就是求出最长的连续递增子序列的长度#include<stdio.h>
#include<algorithm>
#include<math.h>
#define maxn 1000
using namespace std;
int n, a[maxn],d[maxn];int]]></description><category></category></item><item><title><![CDATA[常用排序模板]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/60603821</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/60603821</guid><author>joeycom2</author><pubDate>Mon, 06 Mar 2017 22:16:15 +0800</pubDate><description><![CDATA[快速排序 
其思想是：先选一个“标尺”， 
用它把整个队列过一遍筛子， 
以保证：其左边的元素都不大于它，其右边的元素都不小于它。 
这样，排序问题就被分割为两个子区间。 
再分别对子区间排序就可以了。
选择排序 
思想：重复选择数组内的最大值，交换到合适的位置。该排序方法比较慢。
堆排序 
思想：堆实际上是一棵完全二叉树，利用大顶堆(小顶堆)堆顶记录的是最大关键字(最小关键字)这一特性，使得每次从]]></description><category></category></item><item><title><![CDATA[HDU1358-Period（kmp-求前缀长度和最小循环节长度 ）]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/53326933</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/53326933</guid><author>joeycom2</author><pubDate>Thu, 24 Nov 2016 22:12:12 +0800</pubDate><description><![CDATA[题目链接：acm.hdu.edu.cn/showproblem.php?pid=1358 
题目描述：给一数字n，和一长度为n的字符串，要求把所有循环节大于1的字符串的长度和循环次数输出。//求前缀长度和最小循环节长度 
#include<cstdio>
#include<iostream>
#include<cstring>
#include<algorithm>
#define maxn 100]]></description><category></category></item><item><title><![CDATA[HDU-剪花布条（kmp）&& HDU-Oulipo（kmp）的区别]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/53326750</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/53326750</guid><author>joeycom2</author><pubDate>Thu, 24 Nov 2016 21:59:16 +0800</pubDate><description><![CDATA[HDU2087-剪花布条 
题目链接：http://acm.hdu.edu.cn/showproblem.php?pid=2087 
题目描述：给出父串和子串，问子串在父串中出现的次数#include<cstdio>
#include<cstring>
#include<algorithm>
#define maxn 1010using namespace std;
char fa[maxn], s]]></description><category></category></item><item><title><![CDATA[Big Event in HDU-01背包（dp思想）]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/53326327</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/53326327</guid><author>joeycom2</author><pubDate>Thu, 24 Nov 2016 21:30:19 +0800</pubDate><description><![CDATA[题目链接：http://acm.hdu.edu.cn/showproblem.php?pid=1171 
问题描述：给出每个物体的价值和数量，如何分使得A,B所得价值最接近并且A的价值不能小于B 
解决方法：dp[i]是体积为i时，获得的最大价值。易得： dp[j] = max(dp[j], dp[j - val[i]] + val[i]);#include <iostream>
#include]]></description><category></category></item><item><title><![CDATA[线段树]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/52915483</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/52915483</guid><author>joeycom2</author><pubDate>Mon, 24 Oct 2016 20:53:30 +0800</pubDate><description><![CDATA[首先我们来看一下线段树的定义，线段树是一种二叉搜索树，它将一个区间划分成一些单元区间，每个单元区间对应线段树中的一个叶结点。对于线段树中的每一个非叶子节点[a,b]，它的左儿子表示的区间为[a,(a+b)/2]，右儿子表示的区间为[(a+b)/2+1,b]。 
使用线段树可以快速的查找某一个节点在若干条线段中出现的次数，时间复杂度为O(logN）。 
线段树问题可以大致分为以下四类 
1.单点更新:]]></description><category></category></item><item><title><![CDATA[CodeForces 148A]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/52904866</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/52904866</guid><author>joeycom2</author><pubDate>Sun, 23 Oct 2016 21:52:42 +0800</pubDate><description><![CDATA[#include<iostream>
#include<stdio.h>
#include<algorithm>
#include<string.h>
using namespace std;
int k, l, m, n, d, u;
int num[100005];
int main()
{
    while (cin >> k >> l >> m >> n >> d)
    {]]></description><category></category></item><item><title><![CDATA[CodeForces 526B Om Nom and Dark Park dp & dfs]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/52904821</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/52904821</guid><author>joeycom2</author><pubDate>Sun, 23 Oct 2016 21:45:22 +0800</pubDate><description><![CDATA[题目链接：http://codeforces.com/problemset/problem/526/B 
题意：给出一颗满二叉树和边权，求使每颗子树的左右子树边权相同最少需要添加的权为多少//CodeForces 526B Om Nom and Dark Park
//dp + dfs
#include <cstdio>  
#include <cstring>  
#include <cmath>]]></description><category></category></item><item><title><![CDATA[codeforces 522A Reposts-找最长链长度dp[x]]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/52904784</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/52904784</guid><author>joeycom2</author><pubDate>Sun, 23 Oct 2016 21:38:35 +0800</pubDate><description><![CDATA[题目链接：http://codeforces.com/problemset/problem/522/A 
题意：给定一系列的字符串，然后用这些字符串相连接，找一下最长能够连多长（前一个字符串的第三个单词和下一个字符串的第一个单词相等的时候可以连接，字符串中的大写和小写是一样对待的）！//codeforces 522A Reposts,找最长链长度dp[x]
#include <iostream>
#]]></description><category></category></item><item><title><![CDATA[hdu1142-记忆化搜索]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/52904737</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/52904737</guid><author>joeycom2</author><pubDate>Sun, 23 Oct 2016 21:33:01 +0800</pubDate><description><![CDATA[题目链接：http://acm.split.hdu.edu.cn/showproblem.php?pid=1142//hdu1142
#include <iostream>
#include <stdio.h>
#include <memory.h>
#include <queue>
#include <vector>
#define INF 0x3f3f3f3f
#define maxn 1005]]></description><category></category></item><item><title><![CDATA[HDU1756--判断点与多边形的相对位置]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/52188293</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/52188293</guid><author>joeycom2</author><pubDate>Fri, 12 Aug 2016 08:13:20 +0800</pubDate><description><![CDATA[题目链接：http://acm.hdu.edu.cn/showproblem.php?pid=1756 
题意：判断点是否在给出的多边形内（包括边界）#include<cstdio>
#include<cstring>
#include<cmath>
#include<iostream>using namespace std;const double eps = 1e-8;
//判断double类型]]></description><category></category></item><item><title><![CDATA[平面图中的欧拉定理]]></title><link>https://blog.youkuaiyun.com/joeycom2/article/details/52166367</link><guid>https://blog.youkuaiyun.com/joeycom2/article/details/52166367</guid><author>joeycom2</author><pubDate>Tue, 09 Aug 2016 21:38:02 +0800</pubDate><description><![CDATA[定理：设G为任意的连通的平面图，则v-e+f=2，v是G的顶点数，e是G的边数，f是G的面数。题目描述：给出一个一笔画图形的n个节点的坐标，请你求解这个图形把平面分成了几个面 
一笔画图形一个是把图上所有的边仅且遍历一次的封闭连通图。 
分析：求面的问题就分解为求顶点个数与边条数的问题。 
点的求法：遍历每条线段，如果是规范相交，则将该点存入V[]数组中。最后对V[]数组进行排序，使用STL中的un]]></description><category></category></item></channel></rss>