data structure c++ introductory topic

1. There are 100 students, and each student has a student number, name, and average grade. What is the most convenient structure to use? Write these structures?

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

2. Design a data structure to represent the basic information of a certain bank depositor: account number, name, date of account opening, type of savings, accumulative deposit amount, interest, book total.

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. Standard format for abstract data types

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

Guess you like

Origin blog.csdn.net/qq_51344334/article/details/114445004