mawe

导航

2012年10月3日 #

mysql乱码修改my.ini方法不起作用

摘要: mysql乱码修改my.ini方法不起作用按网上方法,my.ini里设置了character-set-server=gbk,default-character-set=gbk后,不起作用。。。或者是你安装目录下面没有my.ini文件。或者是找不到。安装完mysql在开始菜单都有 个 MySQL Server Instance Config Wizard 配置选项一直next 到下图 选择在next勾选 Include Bin Directory in windows path 这项next 密码 没有的话全不为空执行就可以了。如果之前里面有数据那就需要重新导入 否则还是查出来乱码双击MySQL 阅读全文

posted @ 2012-10-03 11:43 ma1076492641 阅读(1228) 评论(0) 推荐(0) 编辑

2012年9月20日 #

java读取properties中文乱码

摘要: 你的properties没有经过任何转码,而是用的系统的码,这时你假设你从properties文件中取出的中文或是英文的字符串放到message里用如下的这一句就可以吧message转换成gb2312字符message=new String(message.getBytes(System.getProperty("file.encoding")),"gb2312");希望能帮到你。。。 阅读全文

posted @ 2012-09-20 18:07 ma1076492641 阅读(425) 评论(0) 推荐(0) 编辑

2012年8月4日 #

整数中缀表达式求值

摘要: #include<stdio.h>#include<stdlib.h>#define MAX 50typedef struct{ char data[MAX]; int top;}stack;typedef struct{ float data[MAX]; int top;}fstack;stack* create(){ stack *s; s=malloc(sizeof(stack)); s->top=-1; return s;}fstack* fcreate(){ fstack *s; s=malloc(sizeof(fstack)); s->top=- 阅读全文

posted @ 2012-08-04 00:28 ma1076492641 阅读(200) 评论(0) 推荐(0) 编辑

两个任意长度整数的加减乘除

摘要: #include<stdio.h>#include<string.h>#include<math.h>#define MAX 100void jia(char aa[],char bb[],int n,int m){ int i,temp=0,j; int a[MAX]={0},b[MAX]={0}; int c[MAX]={0}; for(i=n-1,j=0;i>=0;i--,j++) a[j]=aa[i]-'0'; for(i=m-1,j=0;i>=0;i--,j++) b[j]=bb[i]-'0'; if(n 阅读全文

posted @ 2012-08-04 00:18 ma1076492641 阅读(457) 评论(0) 推荐(0) 编辑

2012年7月20日 #

C#中双击编辑listview某项

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication2{ public partial class Form1 : Form { ListViewEx cListView1 = new ListViewEx(); public Form1() { InitializeCompon 阅读全文

posted @ 2012-07-20 23:19 ma1076492641 阅读(3482) 评论(0) 推荐(0) 编辑