问答题
设计一数据结构,用来表示某一银行储户的基本信息: 账号、姓名、开户年月日、储蓄类型、存入累加数、利息、帐面总数。(浙大)
【参考答案】
struct node
{int year,month,day; };
typedef struct
{int num;//帐号
char name[8];//姓名
struct node date;//开户年月日
int tag;//储蓄类型,如:0- 零存,1- 一年定期……
float put;//存入累加数;
float interest;//利息
float total;//帐面总数
}count;