2015年3月13日
摘要: 在php+mysql开发过程中,遇到如下提示:Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead;开发环... 阅读全文
posted @ 2015-03-13 11:19 猫腿饭 阅读(2278) 评论(0) 推荐(0) 编辑
  2015年3月12日
摘要: 在PHP开发使用jpgraph类库生成统计图表时,图表的标题及坐标轴文字出现中文乱码情况,现将解决办法总结如下,仅供参考。jpgraph的下载和配置过程省略,直接进入正题:(1)修改jpgraph_ttf.inc文件在jpgraph的src目录下,找到jpgraph_ttf.inc文件,编辑图中代码... 阅读全文
posted @ 2015-03-12 16:22 猫腿饭 阅读(834) 评论(0) 推荐(0) 编辑
  2014年5月8日
摘要: 对一个int型的数字进行因式分解,输出不重复的因式。 阅读全文
posted @ 2014-05-08 23:26 猫腿饭 阅读(719) 评论(0) 推荐(0) 编辑
  2014年3月10日
摘要: 使用C#语言,通过读取配置文件,删除IE浏览器下的cookie文件,去除网页上推荐的与自己相关的网购信息。代码如下:public class DeleteCookie { public void ClearCookie() { string cookiePath = System.Configuration.ConfigurationSettings.AppSettings["cookiePath"]; foreach (string singleFile in Directory.GetFi... 阅读全文
posted @ 2014-03-10 23:01 猫腿饭 阅读(726) 评论(0) 推荐(0) 编辑
  2014年3月1日
摘要: 在笔试的时候曾经遇到过这样的题目,给定一个字符串,要求去重,输出不同的字母。个人完成的代码如下:class ShowSubStr { private string test = "abcdabce";//测试字符串 public void Showstr() { List convert = test.ToList();//将string转换为List,方可逐字母进行比较 List result = new List();//存放比较结果 for... 阅读全文
posted @ 2014-03-01 23:19 猫腿饭 阅读(739) 评论(0) 推荐(0) 编辑