10 2004 档案

摘要:/*C#: Simple Runtime Control Sizing and Dragging Class首先声明如下代码改自 CodeProject 同名文章(鸣谢原作者 Jim Korovessis: ~!@#$%^&*):http://www.codeproject.com/cs/miscctrl/CSPickBoxSample1.asp我做了如下改造:1.增加一个 ArrayList 存储 WiredControls2.增加 UnWireAllWiredControls() 方法,用于切换到控件"非设计"状态3.增加 WireControls() 方法,用 阅读全文
posted @ 2004-10-26 22:14 于斯人也 阅读(306) 评论(0) 推荐(0) 编辑
摘要:Java Code:class Class1{static void bubbleSort(int[] a){for (int j = a.length - 1; j > 0; j--) // outer loop (backward)for (int i = 0; i < j; i++) // inner loop (forward)if (a[i] > a[i+1]) //Swap{a[i] = a[i] + a[i+1];a[i+1] = a[i] - a[i+1];a[i] = a[i] - a[i+1];}}public static void main(Strin 阅读全文
posted @ 2004-10-24 17:25 于斯人也 阅读(303) 评论(0) 推荐(0) 编辑
摘要:.Net Remoting 实现简易的控制台命令行聊天室本套程序由四个主要的对象组成:1. ChatRoom (ChatRoom.cs): 服务器端真正的提供远程服务的对象,负责以服务器推(push)的方式把 Sender 发来的消息"广播"出去。2004-12-29 修订,使 Server Side 程序更加健壮!/* csc.exe ChatRoom.cs /t:library ChatRoom.dll*/using System;using System.Runtime.Remoting;//[Serializable]public class ChatRoom : 阅读全文
posted @ 2004-10-14 21:43 于斯人也 阅读(428) 评论(0) 推荐(0) 编辑
摘要://C# 全拼: csc.exe XXX.cs public class Class1{static void Main(string[] args){System.Console.WriteLine(GetSpell("。asdasd @#$%%^% 在此"));//繁体不正常System.Console.WriteLine(GetSpell("在此處添加代碼 hello 以啟動應用程式"));}public static string GetSpell(string x){int[] iA = new int[]{-20319,-20317,-203 阅读全文
posted @ 2004-10-11 13:45 于斯人也 阅读(208) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示