决解乱码费了我好些时间啊!
乱码原因有
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
问题 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
画一个心形有很多公式可以使用,下面这个公式我认为最完美了:
float x = R * 16 * pow(sin(theta), 3);
float y = R * (13 * cos(theta) - 5*cos(2*theta) - 2*cos(3*theta) - cos(4*theta));
画出来的心形最漂亮,最原始的笛卡尔的心形是个肥心,没这个好看,呵呵。
效果如下:
...
分类:
其他好文 时间:
2014-05-25 22:46:49
阅读次数:
315
Question0Sign in to voteFolks,In my
application, when the user hits "Submit" button, I have to make a Web service
call asynchronously. Here is what I ...
分类:
其他好文 时间:
2014-05-25 22:19:32
阅读次数:
657
文件上传:这里用得时表单上传的方式,表单上传到的时候
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