上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 63 下一页
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceAccountManager{classAccount{publicAccount(){ }publicAccount(stringname,stringaccount){this.Name=name;this.AccountNumber=account;}publicstringName{get;set;}publicstringAccountNumber{get;set;}}}usingSystem;usingSyst 阅读全文
posted @ 2013-04-23 23:07 Predator 阅读(485) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Collections; namespaceShowWindow{publicpartialclassMessage:Form{privateArrayListlistMsg=newArrayList();privateintmsgList 阅读全文
posted @ 2013-04-19 07:32 Predator 阅读(242) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.Threading;// "Singleton"class LoadBalancer{ // Fields private static LoadBalancer balancer; private ArrayList servers = new ArrayList(); private Random random = new Random(); // Constructors (protected) protected LoadBalancer() { // List o 阅读全文
posted @ 2013-04-16 18:28 Predator 阅读(137) 评论(0) 推荐(0) 编辑
摘要: staticvoidMain(string[]args){stringContinue="";//用来保存是否还需要交易标志List<Account>listAccounts=newList<Account>{newAccount(101),newAccount(102),newAccount(99),newAccount(250),newAccount(200)};foreach(AccountiteminlistAccounts){Console.WriteLine(item.Balance);}Console.WriteLine("* 阅读全文
posted @ 2013-04-16 18:27 Predator 阅读(168) 评论(0) 推荐(0) 编辑
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 63 下一页