数据结构c++绪论题目

1.有100个学生,每个学生有学号,姓名,平均成绩,采用什么样的结构最方便,写出这些结构?

typedef struct
{
    
    int num;
 char name[8];
 float score;
 }node;
 node student[100];

2.设计一数据结构,用来表示某一银行储户的基本信息:账号,姓名,开户年月日,储蓄类型,存入累加数,利息,账面总数。

struct node
{
    
    int year,monthmday;}
typedef struct
{
    
    int num;
char name[8];
struct node date;
int tag;
float put;
float interest;
float total;
}count;

3.抽象数据类型的标准格式

ADT   抽象数据类型
Data
         数据元素之间的逻辑关系的定义
operation
         操作
endADT                  

猜你喜欢

转载自blog.csdn.net/qq_51344334/article/details/114445004