class Bank
{
//Dictionary<long,Account> dictionary=new Dictionary<long,Account>();
DataTable table = new DataTable();//存储,储蓄账户集合
DataTable table1 = new DataTable();//存储信用账户集合
SavingAccount account = new SavingAccount();//储蓄账户类的实例化
CreditAccount account1 = new CreditAccount();//信用账户类的实例化
public void init() {
table.Columns.Add("账号");
table.Columns.Add("密码");
table.Columns.Add("真名");
table.Columns.Add("身份证");
table.Columns.Add("邮箱");
table.Columns.Add("类型");
table.Columns.Add("余额");
table.PrimaryKey = new DataColumn[] { table.Columns["账号"] };
DataRow row = table.NewRow();
row["账号"] = ;
row["密码"] = "";
row["真名"] = "小明";
row["身份证"] = "";
row["邮箱"] = "1@163";
row["类型"] = ;
row["余额"] = ;
table.Rows.Add(row);
table.Columns["类型"].DefaultValue = ;
table.Columns["余额"].DefaultValue = ; table1.Columns.Add("账号");
table1.Columns.Add("密码");
table1.Columns.Add("真名");
table1.Columns.Add("身份证");
table1.Columns.Add("邮箱");
table1.Columns.Add("类型");
table1.Columns.Add("余额");
table1.Columns.Add("额度");
table1.PrimaryKey = new DataColumn[] { table1.Columns["账号"] };
DataRow row1 = table1.NewRow();
row1["账号"] = ;
row1["密码"] = "";
row1["真名"] = "小王";
row1["身份证"] = "";
row1["邮箱"] = "2@163";
row1["类型"] = ;
row1["余额"] = ;
row1["额度"] = ;
table1.Rows.Add(row1);
table1.Columns["类型"].DefaultValue = ;
table1.Columns["余额"].DefaultValue = ;
table1.Columns["额度"].DefaultValue = ;
index();
}//初始化
public void index() { Console.WriteLine("1.开户 2.登录");
int choice=int.Parse(Console.ReadLine());
if (choice == ) {
register();
}
else if (choice == )
{ login();
}
else {
Console.WriteLine("您输入的有误,请重新输入!");
index();
}
}//主页面
public void login() {
Console.WriteLine("请选择你要登录的账户种类0.储蓄账户1.信用账户 ");
int type = int.Parse(Console.ReadLine());
if (type == ) {
Console.WriteLine("请输入用户名:");
account.Id = long.Parse(Console.ReadLine());
Console.WriteLine("请输入密码:");
account.Password = Console.ReadLine();
if (table.Rows.Contains(account.Id) && table.Rows.Find(account.Id)["密码"].ToString().Equals(account.Password))
{
Console.WriteLine("登录成功");
for (int i = ; i < table.Columns.Count; i++)
{
Console.Write(table.Columns[i] + "\t");
}
Console.WriteLine();
Console.WriteLine(table.Rows.Find(account.Id)["账号"].ToString() + "\t" + table.Rows.Find(account.Id)["密码"].ToString() + "\t" + table.Rows.Find(account.Id)["真名"].ToString() + "\t" + table.Rows.Find(account.Id)["身份证"].ToString() + "\t" + table.Rows.Find(account.Id)["邮箱"].ToString() + "\t" + table.Rows.Find(account.Id)["类型"].ToString() + "\t" + table.Rows.Find(account.Id)["余额"].ToString());
Console.WriteLine("选择您要的操作0.存款1.取款2.转账3.退出登录4.还信用卡");
int choice = int.Parse(Console.ReadLine());
if (choice == )
{
deposit(table.Rows.Find(account.Id));
}
else if (choice == )
{
withdraw(table.Rows.Find(account.Id));
}
else if (choice == )
{
transfer(table.Rows.Find(account.Id));
}
else if (choice == )
{
index();
}
else if (choice == )
{
transfer1(table.Rows.Find(account.Id));
}
}
else
{
Console.WriteLine("您的帐户名和密码有误,请重新输入");
index();
}
}
else if (type == )
{
Console.WriteLine("请输入用户名:");
account1.Id = long.Parse(Console.ReadLine());
Console.WriteLine("请输入密码:");
account1.Password = Console.ReadLine();
if (table1.Rows.Contains(account1.Id) && table1.Rows.Find(account1.Id)["密码"].ToString().Equals(account1.Password))
{
Console.WriteLine("登录成功");
for (int i = ; i < table1.Columns.Count; i++)
{
Console.Write(table1.Columns[i] + "\t");
}
Console.WriteLine();
Console.WriteLine(table1.Rows.Find(account1.Id)["账号"].ToString() + "\t" + table1.Rows.Find(account1.Id)["密码"].ToString() + "\t" + table1.Rows.Find(account1.Id)["真名"].ToString() + "\t" + table1.Rows.Find(account1.Id)["身份证"].ToString() + "\t" + table1.Rows.Find(account1.Id)["邮箱"].ToString() + "\t" + table1.Rows.Find(account1.Id)["类型"].ToString() + "\t" + table1.Rows.Find(account1.Id)["余额"].ToString() + "\t" + table1.Rows.Find(account1.Id)["额度"].ToString());
Console.WriteLine("0.存款1.取款3.退出账户");
int choice = int.Parse(Console.ReadLine());
if (choice == )
{
deposit1(table1.Rows.Find(account1.Id));
}
else if (choice == )
{
withdraw1(table1.Rows.Find(account1.Id));
}
else if (choice == )
{
index();
}
}
else
{
Console.WriteLine("您的帐户名和密码有误,请重新输入");
index();
}
} }//登录
public void register()
{
Console.WriteLine("请选择你要开户的种类0.储蓄账户1.信用账户");
int type = int.Parse(Console.ReadLine());
if (type == ) {
account.Id = table.Rows.Count + ;
Console.WriteLine("请输入密码");
account.Password = Console.ReadLine();
Console.WriteLine("请输入真名");
account.Name = Console.ReadLine();
Console.WriteLine("请输入身份证");
account.PersonId = Console.ReadLine();
Console.WriteLine("请输入邮箱");
account.Email = Console.ReadLine();
DataRow row = table.NewRow();
row["账号"] = account.Id;
row["密码"] = account.Password;
row["真名"] = account.Name;
row["身份证"] = account.PersonId;
row["邮箱"] = account.Email;
table.Rows.Add(row);
Console.WriteLine("开户成功,信息如下:");
for (int i = ; i < table.Columns.Count; i++)
{
Console.Write(table.Columns[i] + "\t");
}
Console.WriteLine();
Console.WriteLine(table.Rows.Find(account.Id)["账号"].ToString() + "\t" + table.Rows.Find(account.Id)["密码"].ToString() + "\t" + table.Rows.Find(account.Id)["真名"].ToString() + "\t" + table.Rows.Find(account.Id)["身份证"].ToString() + "\t" + table.Rows.Find(account.Id)["邮箱"].ToString() + "\t" + table.Rows.Find(account.Id)["类型"].ToString() + "\t" + table.Rows.Find(account.Id)["余额"].ToString());
Console.WriteLine("请登录");
index();
}
else if (type == )
{
account1.Id = table1.Rows.Count + ;
Console.WriteLine("请输入密码");
account1.Password = Console.ReadLine();
Console.WriteLine("请输入真名");
account1.Name = Console.ReadLine();
Console.WriteLine("请输入身份证");
account1.PersonId = Console.ReadLine();
Console.WriteLine("请输入邮箱");
account1.Email = Console.ReadLine();
DataRow row1 = table1.NewRow();
row1["账号"] = account1.Id;
row1["密码"] = account1.Password;
row1["真名"] = account1.Name;
row1["身份证"] = account1.PersonId;
row1["邮箱"] = account1.Email;
table1.Rows.Add(row1);
Console.WriteLine("开户成功,信息如下:");
for (int i = ; i < table1.Columns.Count; i++)
{
Console.Write(table1.Columns[i] + "\t");
}
Console.WriteLine();
Console.WriteLine(table1.Rows.Find(account1.Id)["账号"].ToString() + "\t" + table1.Rows.Find(account1.Id)["密码"].ToString() + "\t" + table1.Rows.Find(account1.Id)["真名"].ToString() + "\t" + table1.Rows.Find(account1.Id)["身份证"].ToString() + "\t" + table1.Rows.Find(account1.Id)["邮箱"].ToString() + "\t" + table1.Rows.Find(account1.Id)["类型"].ToString() + "\t" + table1.Rows.Find(account1.Id)["余额"].ToString() + "\t" + table1.Rows.Find(account1.Id)["额度"].ToString());
Console.WriteLine("请登录");
index();
}
}//注册
public void deposit(DataRow dr) {
if (dr != null)
{
Console.WriteLine("请输入你要存入的金额:");
double money = double.Parse(Console.ReadLine());
dr["余额"] = Convert.ToDouble((dr["余额"])) + money;
for (int i = ; i < table.Columns.Count; i++)
{
Console.Write(table.Columns[i] + "\t");
}
Console.WriteLine();
Console.WriteLine(table.Rows.Find(account.Id)["账号"].ToString() + "\t" + table.Rows.Find(account.Id)["密码"].ToString() + "\t" + table.Rows.Find(account.Id)["真名"].ToString() + "\t" + table.Rows.Find(account.Id)["身份证"].ToString() + "\t" + table.Rows.Find(account.Id)["邮箱"].ToString() + "\t" + table.Rows.Find(account.Id)["类型"].ToString() + "\t" + table.Rows.Find(account.Id)["余额"].ToString());
Console.WriteLine("选择您要的操作0.存款1.取款2.转账3.退出登录4.还信用卡");
int choice = int.Parse(Console.ReadLine());
if (choice == )
{
deposit(table.Rows.Find(account.Id));
}
else if (choice == )
{
withdraw(table.Rows.Find(account.Id));
}
else if (choice == )
{
transfer(table.Rows.Find(account.Id));
}
else if (choice == )
{
index();
}
else if (choice == )
{
transfer1(table.Rows.Find(account.Id));
}
}
else {
Console.WriteLine("您还没有登录");
login();
}
}//储蓄账户存款
public void deposit1(DataRow dr)
{
if (dr != null)
{
Console.WriteLine("请输入你要存入的金额:");
double money = double.Parse(Console.ReadLine());
dr["余额"] = Convert.ToDouble((dr["余额"])) + money;
for (int i = ; i < table1.Columns.Count; i++)
{
Console.Write(table1.Columns[i] + "\t");
}
Console.WriteLine();
Console.WriteLine(table1.Rows.Find(account1.Id)["账号"].ToString() + "\t" + table1.Rows.Find(account1.Id)["密码"].ToString() + "\t" + table1.Rows.Find(account1.Id)["真名"].ToString() + "\t" + table1.Rows.Find(account1.Id)["身份证"].ToString() + "\t" + table1.Rows.Find(account1.Id)["邮箱"].ToString() + "\t" + table1.Rows.Find(account1.Id)["类型"].ToString() + "\t" + table1.Rows.Find(account1.Id)["余额"].ToString() + "\t" + table1.Rows.Find(account1.Id)["额度"].ToString());
Console.WriteLine("选择您要的操作0.存款1.取款3.退出登录");
int choice = int.Parse(Console.ReadLine());
if (choice == )
{
deposit1(table1.Rows.Find(account1.Id));
}
else if (choice == )
{
withdraw1(table1.Rows.Find(account1.Id));
}
else if (choice == )
{
index();
}
}
else
{
Console.WriteLine("您还没有登录");
login();
}
}//信用账户存款
public void withdraw(DataRow dr)
{
if (dr != null)
{
Console.WriteLine("请输入你要取出的金额:");
double money = double.Parse(Console.ReadLine());
if (Convert.ToDouble((dr["余额"])) >= money)
{
dr["余额"] = Convert.ToDouble((dr["余额"])) - money;
for (int i = ; i < table.Columns.Count; i++)
{
Console.Write(table.Columns[i] + "\t");
}
Console.WriteLine();
Console.WriteLine(table.Rows.Find(account.Id)["账号"].ToString() + "\t" + table.Rows.Find(account.Id)["密码"].ToString() + "\t" + table.Rows.Find(account.Id)["真名"].ToString() + "\t" + table.Rows.Find(account.Id)["身份证"].ToString() + "\t" + table.Rows.Find(account.Id)["邮箱"].ToString() + "\t" + table.Rows.Find(account.Id)["类型"].ToString() + "\t" + table.Rows.Find(account.Id)["余额"].ToString());
Console.WriteLine("选择您要的操作0.存款1.取款2.转账3.退出登录4.还信用卡");
int choice = int.Parse(Console.ReadLine());
if (choice == )
{
deposit(table.Rows.Find(account.Id));
}
else if (choice == )
{
withdraw(table.Rows.Find(account.Id));
}
else if (choice == )
{
transfer(table.Rows.Find(account.Id));
}
else if (choice == )
{
index();
}
else if (choice == )
{
transfer1(table.Rows.Find(account.Id));
}
}
else {
Console.WriteLine("您的余额不足!");
withdraw(table.Rows.Find(account.Id));
}
}
else
{
Console.WriteLine("您还没有登录");
login();
}
}//储蓄账户取款
public void withdraw1(DataRow dr)
{
if (dr != null)
{
Console.WriteLine("请输入你要取出的金额:");
double money = double.Parse(Console.ReadLine());
if (Convert.ToDouble((dr["余额"])) >= money)
{
dr["余额"] = Convert.ToDouble((dr["余额"])) - money;
for (int i = ; i < table1.Columns.Count; i++)
{
Console.Write(table1.Columns[i] + "\t");
}
Console.WriteLine();
Console.WriteLine(table1.Rows.Find(account1.Id)["账号"].ToString() + "\t" + table1.Rows.Find(account1.Id)["密码"].ToString() + "\t" + table1.Rows.Find(account1.Id)["真名"].ToString() + "\t" + table1.Rows.Find(account1.Id)["身份证"].ToString() + "\t" + table1.Rows.Find(account1.Id)["邮箱"].ToString() + "\t" + table1.Rows.Find(account1.Id)["类型"].ToString() + "\t" + table1.Rows.Find(account1.Id)["余额"].ToString() + "\t"+table1.Rows.Find(account1.Id)["额度"].ToString());
Console.WriteLine("选择您要的操作0.存款1.取款3.退出登录");
int choice = int.Parse(Console.ReadLine());
if (choice == )
{
deposit1(table1.Rows.Find(account1.Id));
}
else if (choice == )
{
withdraw1(table1.Rows.Find(account1.Id));
}
else if (choice == )
{
index();
}
}
else if (Convert.ToDouble((dr["余额"])) < money && Convert.ToDouble((dr["余额"])) + Convert.ToDouble((dr["额度"])) >= money) {
dr["余额"] = Convert.ToDouble((dr["余额"])) - money;
for (int i = ; i < table1.Columns.Count; i++)
{
Console.Write(table1.Columns[i] + "\t");
}
Console.WriteLine();
Console.WriteLine(table1.Rows.Find(account1.Id)["账号"].ToString() + "\t" + table1.Rows.Find(account1.Id)["密码"].ToString() + "\t" + table1.Rows.Find(account1.Id)["真名"].ToString() + "\t" + table1.Rows.Find(account1.Id)["身份证"].ToString() + "\t" + table1.Rows.Find(account1.Id)["邮箱"].ToString() + "\t" + table1.Rows.Find(account1.Id)["类型"].ToString() + "\t" + table1.Rows.Find(account1.Id)["余额"].ToString() +"\t"+ table1.Rows.Find(account1.Id)["额度"].ToString());
Console.WriteLine("选择您要的操作0.存款1.取款2.转账3.退出登录");
int choice = int.Parse(Console.ReadLine());
if (choice == )
{
deposit1(table1.Rows.Find(account.Id));
}
else if (choice == )
{
withdraw1(table1.Rows.Find(account1.Id));
}
else if (choice == )
{
withdraw1(table.Rows.Find(account.Id));
}
else if (choice == )
{
index();
} }
else
{
Console.WriteLine("您的余额和额度不够!");
withdraw1(table1.Rows.Find(account1.Id));
}
}
else
{
Console.WriteLine("您还没有登录");
login();
}
}//信用账户取款
public void transfer(DataRow dr) {
Console.WriteLine("请输入你要转账的金额");
double money = double.Parse(Console.ReadLine());
if (Convert.ToDouble((dr["余额"])) >= money)
{
Console.WriteLine("请输入对方账号");
long toId = long.Parse(Console.ReadLine());
dr["余额"] = Convert.ToDouble((dr["余额"])) - money;
for (int i = ; i < table.Columns.Count; i++)
{
Console.Write(table.Columns[i] + "\t");
}
Console.WriteLine();
Console.WriteLine(table.Rows.Find(account.Id)["账号"].ToString() + "\t" + table.Rows.Find(account.Id)["密码"].ToString() + "\t" + table.Rows.Find(account.Id)["真名"].ToString() + "\t" + table.Rows.Find(account.Id)["身份证"].ToString() + "\t" + table.Rows.Find(account.Id)["邮箱"].ToString() + "\t" + table.Rows.Find(account.Id)["类型"].ToString() + "\t" + table.Rows.Find(account.Id)["余额"].ToString()); table.Rows.Find(toId)["余额"] = double.Parse(table.Rows.Find(toId)["余额"].ToString()) + money; Console.WriteLine("选择您要的操作0.存款1.取款2.转账3.退出登录");
int choice = int.Parse(Console.ReadLine());
if (choice == )
{
deposit(table.Rows.Find(account.Id));
}
else if (choice == )
{
withdraw(table.Rows.Find(account.Id));
}
else if (choice == )
{
transfer(table.Rows.Find(account.Id));
}
else if (choice == )
{
index();
}
}
else { }
}//储蓄账户之间转账
public void transfer1(DataRow dr)
{
Console.WriteLine("请输入你要转账的金额");
double money = double.Parse(Console.ReadLine());
if (Convert.ToDouble((dr["余额"])) >= money)
{
Console.WriteLine("请输入信用卡账号");
long toId = long.Parse(Console.ReadLine());
dr["余额"] = Convert.ToDouble((dr["余额"])) - money;
for (int i = ; i < table.Columns.Count; i++)
{
Console.Write(table.Columns[i] + "\t");
}
Console.WriteLine();
Console.WriteLine(table.Rows.Find(account.Id)["账号"].ToString() + "\t" + table.Rows.Find(account.Id)["密码"].ToString() + "\t" + table.Rows.Find(account.Id)["真名"].ToString() + "\t" + table.Rows.Find(account.Id)["身份证"].ToString() + "\t" + table.Rows.Find(account.Id)["邮箱"].ToString() + "\t" + table.Rows.Find(account.Id)["类型"].ToString() + "\t" + table.Rows.Find(account.Id)["余额"].ToString()); table1.Rows.Find(toId)["余额"] = double.Parse(table1.Rows.Find(toId)["余额"].ToString()) + money; Console.WriteLine("选择您要的操作0.存款1.取款2.转账3.退出登录4.还信用卡");
int choice = int.Parse(Console.ReadLine());
if (choice == )
{
deposit(table.Rows.Find(account.Id));
}
else if (choice == )
{
withdraw(table.Rows.Find(account.Id));
}
else if (choice == )
{
transfer(table.Rows.Find(account.Id));
}
else if (choice == )
{
index();
}
else if (choice == )
{
transfer1(table.Rows.Find(account.Id));
}
}
else
{ }
}//还信用卡 }

本系列教程:

C#基础总结之八面向对象知识点总结-继承与多态-接口-http://www.cnblogs.com/spring_wang/p/6113531.html

C#基础总结之七面向对象知识点总结1http://www.cnblogs.com/spring_wang/p/6113526.html

C#基础总结之六 DataTable (临时表/数据源) 和Datatable 名片练习http://www.cnblogs.com/spring_wang/p/6113520.html

C#基础总结之五Dictionary<string, string[]>和while循环http://www.cnblogs.com/spring_wang/p/6113514.html

C#基础总结之四List-Hashtable-冒泡排序http://www.cnblogs.com/spring_wang/p/6113504.html

C#基础总结之三循环控制-for-数组-乘法表-arraylisthttp://www.cnblogs.com/spring_wang/p/6113496.html

C#基础总结之二循环控制-运算符http://www.cnblogs.com/spring_wang/p/6113484.html

C#基础总结之一变量常量-if嵌套语句-witch结构-类型转换http://www.cnblogs.com/spring_wang/p/6113476.html

C#基础课程之六(临时表)DataTable使用方法http://www.cnblogs.com/spring_wang/p/6113454.html

C#基础课程之五集合(HashTable,Dictionary)http://www.cnblogs.com/spring_wang/p/6113404.html

C#基础课程之四集合(ArrayList、List<泛型>)http://www.cnblogs.com/spring_wang/p/6113396.html

C#基础课程之三循环语句http://www.cnblogs.com/spring_wang/p/6113383.html

C#基础课程之二变量常量及流程控制http://www.cnblogs.com/spring_wang/p/6113372.html

C#基础课程之一注释和控制台、一些常识http://www.cnblogs.com/spring_wang/p/6113361.html

C#基础第九天-作业答案-储蓄账户(SavingAccount)和信用账户(CreditAccount) http://www.cnblogs.com/spring_wang/p/6113291.html

C#基础第九天-作业-储蓄账户(SavingAccount)和信用账户(CreditAccount) http://www.cnblogs.com/spring_wang/p/6113285.html

C#基础第八天-作业答案-设计类-面向对象方式实现两个帐户之间转账http://www.cnblogs.com/spring_wang/p/6113274.html

C#基础第八天-作业-设计类-面向对象方式实现两个帐户之间转账http://www.cnblogs.com/spring_wang/p/6113258.html

C#基础第七天-作业答案-利用面向对象的思想去实现名片-动态添加http://www.cnblogs.com/spring_wang/p/6113232.html

C#基础第七天-作业-利用面向对象的思想去实现名片-动态添加http://www.cnblogs.com/spring_wang/p/6113224.html

C#基础第六天-作业-利用面向对象的思想去实现名片http://www.cnblogs.com/spring_wang/p/6113028.html

C#基础第六天-作业答案-利用面向对象的思想去实现名片http://www.cnblogs.com/spring_wang/p/6113033.html

C#基础第五天-作业答案-用DataTable制作名片集http://www.cnblogs.com/spring_wang/p/6113022.html

C#基础第五天-作业-用DataTable制作名片集http://www.cnblogs.com/spring_wang/p/6113013.html

C#基础第四天-作业答案-Hashtable-list<KeyValuePair>泛型实现名片http://www.cnblogs.com/spring_wang/p/6113005.html

C#基础第四天-作业-Hashtable-list<KeyValuePair>泛型实现名片http://www.cnblogs.com/spring_wang/p/6113000.html

C#基础第三天-作业答案-集合-冒泡排序-模拟名片http://www.cnblogs.com/spring_wang/p/6112888.html

C#基础第三天-作业-集合-冒泡排序-模拟名片http://www.cnblogs.com/spring_wang/p/6112885.html

C#基础第二天-作业答案-九九乘法表-打印星星http://www.cnblogs.com/spring_wang/p/6112881.html

C#基础第二天-作业-九九乘法表-打印星星http://www.cnblogs.com/spring_wang/p/6112875.html

C#基础第一天-作业答案http://www.cnblogs.com/spring_wang/p/6112872.html

C#基础第一天-作业http://www.cnblogs.com/spring_wang/p/6112867.html

C#-string.Format对C#字符串格式化http://www.cnblogs.com/spring_wang/p/6077098.html

C#基础第九天-作业答案-储蓄账户(SavingAccount)和信用账户(CreditAccount)的更多相关文章

  1. C#基础第九天-作业-储蓄账户(SavingAccount)和信用账户(CreditAccount)

    要求1:完成以下两种账户类型的编码.银行的客户分为两大类:储蓄账户(SavingAccount)和信用账户(CreditAccount),两种的账户类型的区别在于:储蓄账户不允许透支,而信用账户可以透 ...

  2. C#基础第八天-作业答案-设计类-面向对象方式实现两个帐户之间转账

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T ...

  3. C#基础第二天-作业答案-九九乘法表-打印星星

    题一:九九乘法表的答案 //正三角 ; i < ; i++) { ; j <= i; j++) { Console.Write("{0}*{1}={2} ", j, i ...

  4. C#基础第一天-作业答案

    题一答案: Console.WriteLine("请输入a"); int a = Convert.ToInt32(Console.ReadLine()); Console.Writ ...

  5. C#基础第七天-作业答案-利用面向对象的思想去实现名片-动态添加

    class Card { private string name; public string Name { get { return name; } set { name = value; } } ...

  6. C#基础第六天-作业答案-利用面向对象的思想去实现名片

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T ...

  7. C#基础第五天-作业答案-用DataTable制作名片集

    .DataTable 实现 DataTable PersonCard = new DataTable(); //创建一个DataTable DataTable PersonCardCopy = new ...

  8. C#基础第四天-作业答案-Hashtable-list<KeyValuePair>泛型实现名片

    .Hashtable 实现 Hashtable table = new Hashtable(); while (true) { Console.WriteLine("------------ ...

  9. C#基础第三天-作业答案-集合-冒泡排序-模拟名片

    .冒泡排序 Console.WriteLine("对集合里的数进行排序,请输入第一个数:"); int a = int.Parse(Console.ReadLine()); Con ...

随机推荐

  1. Struts2添加了<s:debug>后页面无效果的解决方案

    一.环境 Struts2版本 struts2.5 二.问题 在jsp页面中添加了<s:debug>后页面上无任何展示. 三.解决 在struts.xml中的struts节点下添加如下常量即 ...

  2. SHELL pv uv 统计事例

    #!/bin/sh #statistics newplive logs SOURCELOGS=$ ];then echo echo "please input file!" ech ...

  3. selenium安装使用

    pip isntall selenium chromedriver download copy到chrome的安装目录, 并将这个路径加到环境变量的path中 chromedriver与chrome各 ...

  4. python xlwt写excel格式控制 颜色、模式、编码、背景色

    关于写excel的格式控制,比如颜色等等 import xlwt from datetime import datetime font0 = xlwt.Font() font0.name = 'Tim ...

  5. linux下神奇的script

    script 是一个神奇命令,script 能够将终端的会话过程录制下来,然后使用 scriptreplay 就可以将其录制的结果播放给他人观看.script 的好处就在于你在终端中的所有操作.敲过的 ...

  6. Flash: Event.PASTE Flash获取剪贴板内容 触发paste事件 how to get paste event

    actionscript把文字存放到剪贴板这个就非常简单了,一般网站做点击复制基本都是这么做的. 但是,基本没有人做flash粘贴内容.今天本来想尝试一下,通过flash实现网页编辑器粘贴图片,但貌似 ...

  7. Android中怎样做到自己定义的广播仅仅能有指定的app接收

    今天没吊事.又去面试了,详细哪家公司就不说了,由于我在之前的blog中注明了那些家公司的名字,结果人家给我私信说我泄露他们的题目.好吧,我错了... 事实上当我们已经在工作的时候.我们能够在空暇的时间 ...

  8. django之创建第6个项目-过滤器

    1.views.PY # Create your views here. #coding:utf-8 from django.http import HttpResponse import datet ...

  9. Ubuntu18.04下希捷移动硬盘Seagate Backup Plus读写慢

    去年买的一块Seagate Backup Plus 4TB, 专门用来备份的, 之前在win7下用过几次, 但是在Ubuntu下可能只用过一两次, 今天备份的时候, 感觉写入速度不太正常, 大概只有1 ...

  10. JS正则替换掉小括号及内容

    正則表達式:\ ( [ ^ \ ) ] * \ ) JS代码: var str="hello(world)"; var nstr = str.replace(/\([^\)]*\) ...