2005年9月7日
摘要: 字符串的使用 一、标记标记(tokenizing)是从文本中提取具体内容的过程。下面的代码从句子中提取单词,并把它们输出到控制台。class mytokenizing{ static void Main(string[ ] args) { string mystring="I like this food,are you?"; char[] separators={... 阅读全文
posted @ 2005-09-07 20:51 Seraph 阅读(1708) 评论(1) 推荐(0) 编辑
  2005年7月8日
摘要: A new ASP.NET version 1.1 feature, request validation, prevents the server from accepting content containing un-encoded HTML. This feature is designed to help prevent some script-injection attacks whe... 阅读全文
posted @ 2005-07-08 12:17 Seraph 阅读(1043) 评论(5) 推荐(0) 编辑
  2005年5月14日
摘要: 模拟n道单选题的所有可能情况。假设有3道单选题,每个单选题有4个选项,如果方便的模拟出所有的答案。我是这样写的算法。做一次循环所有情况共有:3*4^2+3*4+3=63for (int i=0;i<=63;i++){ //将i转换成4进制数 checki=IntChange("04",i);//不足3位的,如(13、22等),前面补零 len=checki.length; for (k... 阅读全文
posted @ 2005-05-14 22:16 Seraph 阅读(525) 评论(0) 推荐(0) 编辑
摘要: function mod(div,base) { return Math.round(div - (Math.floor(div/base)*base));}function IntChange(cs_lx,cs_int){ result=''; v_chr='0123456789ABCDEF'; v_ix=cs_lx/1; if (!((v_ix>16)||(v_ix0) { i= mod... 阅读全文
posted @ 2005-05-14 22:10 Seraph 阅读(649) 评论(0) 推荐(0) 编辑
  2005年4月20日
摘要: 这两天一直在做没意义的体力活,没的写,sigh 阅读全文
posted @ 2005-04-20 21:34 Seraph 阅读(354) 评论(0) 推荐(0) 编辑
  2005年4月13日
摘要: using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data; namespace InputBoxSample{ /// /// The InputBox class is used to sh... 阅读全文
posted @ 2005-04-13 16:06 Seraph 阅读(679) 评论(0) 推荐(0) 编辑
  2005年4月4日
摘要: 也就是需要输入注册码才能使用,最好是注册码和机器的某些硬件相关。这样拷贝到别的机器上面后也不能使用 阅读全文
posted @ 2005-04-04 19:06 Seraph 阅读(473) 评论(0) 推荐(0) 编辑
  2005年3月26日
摘要: 发信人: Seraph (态度决定一切), 信区: Wine标 题: 天子呼来不上船,自称臣是酒中仙——我的嗜酒情节发信站: BBS 科苑星空站 (Sat Mar 26 17:51:55 2005), 站内 前段时间在医院住院,术后当晚护士妹妹怕我疼,几次到床前探护,昏睡中我全然不知。次日,众人均惊异于我的体质,后被我一语道破天机,因为我嗜酒。 宿舍中常备有三种酒,高度烧酒、红(... 阅读全文
posted @ 2005-03-26 17:57 Seraph 阅读(1999) 评论(7) 推荐(0) 编辑
  2005年3月25日
摘要: Animal Play: Just for fun? BERND HEINRICH Bernd Heinrich is in the Department of Biology, University of Vermont, Burlington, Vermont 05405, USA Working out why animals play is no easy task. The Gen... 阅读全文
posted @ 2005-03-25 16:54 Seraph 阅读(1207) 评论(0) 推荐(0) 编辑
  2005年3月22日
摘要: I am all for documentation contributution. Trust me, this is the one part of a free app that will always suffer. Version 0.95 on will be much more "documentable", since I do not plan on any more major... 阅读全文
posted @ 2005-03-22 21:08 Seraph 阅读(1410) 评论(1) 推荐(0) 编辑