决解乱码费了我好些时间啊!
乱码原因有
1.mysql未设置为支持汉字
2.没有发送头信息
3.使用的编译器不符合相应的编码
决解的方法是
在mysql里
我用的是Wanmp Server
1.在mysql目录下找到my.ini,在[client]新增default-character-set=utf8
[client]
#password = your_passwor...
分类:
数据库 时间:
2014-05-26 04:39:31
阅读次数:
273
#include
#include
#include
using namespace std;
const int m=(int)1E8;
string s1,s2;
int f[2][5001]={0},g[2][5001]={0};
void init();
void work();
int my_max(int,int);
int main()
{
freopen("lcs.in","r"...
分类:
其他好文 时间:
2014-05-26 04:07:17
阅读次数:
305
一,Linux篇
1,停掉mysql服务:service mysql stop;
2,修改my.cnf文件,可以通过find / -name my.cnf来找到文件,里面内容包含[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql即是我们要找的文件,在user-mysql下加入:skip-grant-...
分类:
数据库 时间:
2014-05-26 04:06:14
阅读次数:
346
问题 C: Repeat Number
时间限制: 1 Sec 内存限制: 128 MB
提交: 23 解决: 7
[提交][状态][论坛]
题目描述
Definition: a+b = c, if all the digits of c are same ( c is more than ten),then we call a and b are Repeat Number. My...
分类:
其他好文 时间:
2014-05-26 04:03:34
阅读次数:
228
例1: 批量 查询部门号为 "10" 号的并把它们打印出来 . DECLARE TYPE
emp_table_type IS TABLE OF my_emp%ROWTYPE INDEX BY BINARY_INTEGER; v_emp_table
emp_table_type;BEGIN SELE....
分类:
数据库 时间:
2014-05-26 01:26:47
阅读次数:
356
-好软件的定义就是它的体积不大不小,功能不多不少,一切都是那么的恰到好处。 -Good
software is neither too big nor too small,neither too Complex nor too
Simple,everything is so right. +点击.....
分类:
其他好文 时间:
2014-05-26 00:54:15
阅读次数:
254
I try the one of your approach, it works well
in my computer. Below is my code: public void AddContextMenu() { ContextMenu
mnuContextMenu = new Con...
分类:
其他好文 时间:
2014-05-26 00:36:55
阅读次数:
266
addStudent.jsp如下 Add info This is my JSP page.
添加学生信息 ...
分类:
数据库 时间:
2014-05-25 23:59:14
阅读次数:
479
文件上传:这里用得时表单上传的方式,表单上传到的时候
method一定指定为POST,enctype="multipart/form-data".第一种方式,直接上传、读取、显示内容,并没有存储到服务器端。 1 2
6 7 8 9 10 ">11 12 My J...
分类:
Web程序 时间:
2014-05-25 15:12:42
阅读次数:
363
引自
http://my.oschina.net/wangguolongnk/blog/1113491.
支持向量机的目的是什么?对于用于分类的支持向量机来说,给定一个包含正例和反例(正样本点和负样本点)的样本集合,支持向量机的目的是寻找一个超平面来对样本进行分割,把样本中的正例和反例用超平面分开,...
分类:
其他好文 时间:
2014-05-24 09:25:03
阅读次数:
328