データ構造 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