1 #include<stdio.h> 2 #include<malloc.h> 3 #define LEN sizeof(struct node) 4 5 typedef struct node{ 6 int elem; 7 struct node *next; 8 }*LinkList; //定义链表的结构体 9 10 //初始化链表 11 LinkList InitList(){ 12 LinkList head; 13 head = (struct node *) malloc (LEN); //定义一个头结点... Read More
posted @ 2013-03-19 20:33 Arvin_Z Views(322) Comments(0) Diggs(0)
今天写一jsp文件,将文本域中输入的信息存储到数据库中,结果再在页面上显示出来的时候发现,中文部分全变成了乱码,然后去看数据库,发现存入数据库的信息也是乱码,这说明乱码是form表单提交的过程中产生的。现在模拟一下出现乱码的情况代码1: 1 <%@ page language="java" contentType="text/html; charset=gbk" 2 pageEncoding="gbk"%> 3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Tra Read More
posted @ 2013-03-12 00:57 Arvin_Z Views(235) Comments(0) Diggs(0)