不包括文件读写,实现了基本的开户、转账、查询功能:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include <windows.h>
#include <conio.h>
#define N 100
void menu_2();
void meun_1();
struct BANK
{
char name[15];
char pasd[10];
int num;
int balance;
};
struct BANK Person[N],*p=Person;
int a;
int order_1;
int order_2 = 0;
int money = 0;
int mima[8];
int i = 0;
int k = 0;
int main(void)
{
int j;
int flag = 1;
while (flag)
{
meun_1();
printf("\n");
printf("请选择您要办理的业务:\n");
scanf_s("%d", &order_1);
switch (order_1)
{
char mima[10] = { 0 };
char yonghu[10] = {0};
case 1:
kaihu(Person[i].name, Person[i].pasd, Person[i].num);
printf("用户名: %s\n密码为: %s\n账户: %d\n余额: %d\n", Person[i].name, Person[i].pasd, Person[i].num, Person[i].balance);
i++;
break;
cas