#include #include /*其它说明*/ #include /*字符串函数*/ #include #define max 100 #define LEN 15 #define N 50 int k = 1, n = 0, m = 0; typedef struct Bank { char no[13];//卡号 char name[10];//姓名 char sex[8];//性别 int balance;//余额 char passwd[20]; } bank, ban[max]; void fileWrite(int n, ban s); void modify() { int j = 0; FILE * fp; if ((fp = fopen("a.txt", "r")) == NULL) return; ban s; while (fscanf(fp, "%s %s %s %s %d ", &s[j].no, &s[j].name, &s[j].sex[j],&s[j].passwd, &s[j].balance) == 5) { j++; } n = j; int i, item, num; int age; char sex1[8], s1[LEN + 1], s2[LEN + 1],passwd1[20],age1[10]; float score1; printf("请输入要修改的用户的卡号:\n"); scanf("%s", s1); for (i = 0; i