摘要:
#include <stdio.h>#include <memory.h>#include <algorithm>using namespace std;#define MAX_N 10void merge_sort(int seq[], int len);// 打印数组void my_print(int seq[], int len){ for (int i = 0; i < len; i++) printf("%d\n", seq[i]);}int main(){ int arr[] = {9, 8, 7, 6, 1, 3, 2 阅读全文
摘要:
字符集:Unicode,字符编码:UTF-8UTF-8:一个字节0SXSXSXS 二个字节:110SXSXS 10SXSXSX三个字节:1110SXSX 10SXSXSX 10SXSXSX由于unicode不兼容gb2312等等字符集编码,那么需要codepage来映射,Gb2312:codepage936Unicode:codepoage650011)post乱码:在调用request.getParameter之前调用,request.setCharacterEncoding("UTF-8"),或者增加一个过滤器,加请求参数进行字符编码过滤2)get乱码:设置tomcat 阅读全文