using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class User
{
private string name;
public string Name
{
get { return name; }
set { name = value; }
}
private string password;
public string Password
{
get { return password; }
set { password = value; }
}
private string id;
public string Id
{
get { return id; }
set { id = value; }
}
private double money;
public double Money
{
get { return money; }
set { money = value; }
}
private string num;
public string Num
{
get { return num; }
set { num = value; }
}
public double qukuan(double yuan)
{
if (yuan > 0)
{
if (yuan <= money)
{
money -= yuan;
return money;
}
else
{
return -1;
}
}
else
{
return -1;
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class Bank
{
User ss = new User();
User[] aa = new User[3]
银行转账代码
最新推荐文章于 2023-04-19 14:26:35 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)