摘要:笔者昨天在写代码时无意发现,在枚举类型中,先要对变量附值然后才能运行,那么说是说一切都是设想好的,然后再将它们写成代码,这样是不是变通性太差? 而且,在代码内部采用了if语句,也就是说在使用条件语句时只用将各个条件设入其中再加入一个空条件就一切OK,但是,这个空条件如何实现,因为在附值时要使用punk d=punk.red;这样的语句,所以空条件如何使用?写任何任意条件都会是未被附值变量!... 阅读全文
对简单代码的一些思考
2005-05-30 22:34 by 稻草人, 306 阅读, 0 推荐, 收藏,
摘要:using System;public class Robin{ public int x=156;}class Leon{ public static int Main() { Robin P1=new Robin ();int x =P1.x; Console.WriteLine (x); return 0; }} ... 阅读全文
下载器
2005-05-19 22:54 by 稻草人, 489 阅读, 0 推荐, 收藏,
摘要:以下是一段摘自网上的下载工具源代码,具体出处我也不清楚.using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Net;using System.IO;using ... 阅读全文
动态设置窗体大小
2005-05-19 17:22 by 稻草人, 1719 阅读, 0 推荐, 收藏,
摘要:using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;namespace 实例5{ /**//// /// Form1 的摘要说明。 /// public ... 阅读全文
代码从"hello world"开始...
2005-05-16 21:36 by 稻草人, 643 阅读, 0 推荐, 收藏,
摘要:那天无聊从网上DOWNLOAD了几个简单的代码,随便看看,没想到就一个hello world就可以写得这样"面目全非",忍不住放到blogs上面大家慢慢看,以做日后学习之用 第一种:public class Hello1{ public static void Main() { System.Console.WriteLine("Hello, World!"); }}第... 阅读全文
建造者模式
2005-05-14 07:48 by 稻草人, 531 阅读, 0 推荐, 收藏,
摘要:摘自吕振宇blogs: 2005年5月14日 7:45:18 //Builderpattern--Struc... 阅读全文
就sadier"理财"一说的小小浅见
2005-05-13 14:15 by 稻草人, 475 阅读, 0 推荐, 收藏,
摘要:2005年5月13日 14:08:11 在现代社会中理财比聚财关键这一点我深信不疑,但是... 阅读全文
2005年学习计划
2005-05-13 13:15 by 稻草人, 602 阅读, 0 推荐, 收藏,
摘要:2005年5月复习计划任务... ... 2005年5月13日 12:59:43 ... 阅读全文
浙公网安备 33010602011771号