日期:2014-05-16 浏览次数:20720 次
using System;
using System.Collections.Generic;
using System.Text;
namespace BankSystem
{
class Program
{
static void Main(string[] args)
{
bank Obj_Bank = new bank();
Obj_Bank.GetUsers();
while(true){
Console.WriteLine("============ 欢迎使用有敌存取款系统 ============");
Console.WriteLine("\t1.存款 2.取款 3.转账 4.查询余额 5.退出");
Console.WriteLine("================================================");
string strMenu = Console.ReadLine();
switch (strMenu)
{
case "1" :
Obj_Bank.InMoney();
break;
default :
Obj_Bank.error(1);
break;
}
}
}
}
class bank
{
/*
* 定义用户
*/
int nUserNum = 3;
public void GetUsers()
{
user[] userGroup = new user[nUserNum];
for (int i = 0; i < nUserNum; i++)
{