最近正好在给学生上这部分知识,周末无聊就做个模拟银行系统的账户转帐功能。如下图:
1.程序里面有两个账户交易线程,分别代表两个银行。
模拟两个银行之间的账户往来。账户里面初始都有1000块钱,每次转帐的钱是随机生成的,但是不能超过账户中的余额。
2.程序里面可以控制账户交易的开始和停止
3.程序里面可以控制界面的内容是否显示
4.所有交易的信息无论是否显示在后台都会保存到一个文件中
资源下载地址
最近正好在给学生上这部分知识,周末无聊就做个模拟银行系统的账户转帐功能。如下图:
1.程序里面有两个账户交易线程,分别代表两个银行。
模拟两个银行之间的账户往来。账户里面初始都有1000块钱,每次转帐的钱是随机生成的,但是不能超过账户中的余额。
2.程序里面可以控制账户交易的开始和停止
3.程序里面可以控制界面的内容是否显示
4.所有交易的信息无论是否显示在后台都会保存到一个文件中
资源下载地址