#include #include #include class Card{ public: Card(char a[10],int b,double c) { strcpy(num,a); code=b; money=c; } char num[10]; int code; double money; }; struct node { Card *cod; node *next; }; node *createlist(int n);//创建链表 node *findnum(char m[10],node *head);//核对卡号 int findcode(int q,node *head);//核对密码 void fetchmoney(node *head);//取款 void search(node *head);//查询余额 void zhuan(node *head,node *curnode);//转帐 void change_code(node *head);//更改密码 void exit();//退卡 void lock();//锁卡 void save(node *head);//保存信息 int main() { node *temp, *listhead=NULL; int times=0; listhead=createlist(2); cout<<"★☆★☆★☆★☆★☆欢迎使用本银行 ATM 取款机☆★☆★☆★☆★☆★"<>p; temp=findnum(p,listhead); if(temp) { while(times<3) { cout<<"请输入您的密码:"; int q; cin>>q; if(findcode(q,temp)==0) { cout<<"您输入的密码有误,请重新输入!"<取款"<<" "<<"2>查询余额"<转帐"<<" "<<"4>更改密码"<退出"<>r; if(r==1) { cout<<"【取款】"<