站长软件下载 东莞佳利热转印机 空白卫衣批发 个性服饰定制
  2012年10月19日
摘要: 使用android手机,在使用post请求传递中文内容向服务器端时,如果服务器端要求使用utf-8的编码格式时需要对post请求数据做以下处理;List nameValuePair = new ArrayList(4); nameValuePair.add(new BasicNameValuePair("get_uid", get_uid)); nameValuePair.add(new BasicNameValuePair("message", message)); Log.i("cat", message); nameValueP 阅读全文
posted @ 2012-10-19 16:33 pc蛋蛋 阅读(615) 评论(0) 推荐(0) 编辑
摘要: 所谓八数码问题就是有一个编号为1~8的正方形滑块被摆成3行3列(留一个格子空着)每次可以把与空格相邻的滑块(有公共边的才算相邻)移动到空格中,而它原来的位置就成为了新的空格,给定初始的局面和目标局面,你的任务就是计算出最少的移动步数,如果无法达到目标局面,就输出-1.AC代码:#include<cstdio>#include<string.h>#include<stdlib.h>#include<string>#include<algorithm>#defineN1000000#defineM1000003usingnamespace 阅读全文
posted @ 2012-10-19 09:38 pc蛋蛋 阅读(496) 评论(0) 推荐(0) 编辑