# hbqiu/qiu_c_code architecture

> Architecture diagram of the GitHub repository hbqiu/qiu_c_code, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hbqiu/qiu_c_code
- Repository: https://github.com/hbqiu/qiu_c_code

## Overview

This is a personal collection of C exercises, with a student-management program as its clearest substantial application. Its user workflow is a console menu for account registration, login, password actions, and student-record operations backed by MySQL. The repository also contains standalone data-structure, algorithm, and small programming examples. The student program appears in low and mew variants; the graph keeps their evidenced entry and student-operation paths distinct. Several files are unsampled, so their internal relationships are omitted.

Main entry points: [`student_low/str/main.c`](https://github.com/hbqiu/qiu_c_code/blob/main/student_low/str/main.c) (Low menu), [`student_mew/str/main1.c`](https://github.com/hbqiu/qiu_c_code/blob/main/student_mew/str/main1.c) (Mew menu variant), [`student_mew/str/main.c`](https://github.com/hbqiu/qiu_c_code/blob/main/student_mew/str/main.c) (Mew menu), [`student_low/str/add.c`](https://github.com/hbqiu/qiu_c_code/blob/main/student_low/str/add.c) (User registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Student manager"]
  node_lowmain["Low menu<br/>[main.c]"]
  node_mewmain["Mew menu<br/>[main.c]"]
  node_mewmain1["Mew menu variant<br/>[main1.c]"]
  node_lowstudent["Student operations<br/>[student.c]"]
  node_mewstudent["Student operations<br/>[student.c]"]
  node_studentdb[("MySQL student data")]
end

subgraph group_auth["Accounts and access"]
  node_registration["User registration<br/>[add.c]"]
  node_passwords["Password verification and changes<br/>[uppass.c]"]
  node_userdb[("MySQL account data")]
  node_mysqlvariants["MySQL account implementations"]
end

subgraph group_examples["C exercises"]
  node_lists["Linked lists and stacks<br/>[双向链表.c]"]
  node_queues["Queue examples<br/>[队列.c]"]
  node_trees["Search and balanced trees<br/>[搜索二叉树.c]"]
  node_sorting["Sorting and search<br/>[冒泡排.c]"]
  node_smallprograms["Small C programs<br/>[main1.c]"]
end

node_user(("Console user"))

node_user -->|"selects actions"| node_lowmain
node_user -->|"selects actions"| node_mewmain
node_user -->|"selects actions"| node_mewmain1
node_lowmain -->|"registers via"| node_registration
node_mewmain -.->|"registers via"| node_registration
node_mewmain1 -->|"registers via"| node_registration
node_lowmain -->|"handles passwords"| node_passwords
node_mewmain -.->|"handles passwords"| node_passwords
node_mewmain1 -->|"handles passwords"| node_passwords
node_lowmain -->|"calls student operations"| node_lowstudent
node_mewmain -->|"calls student operations"| node_mewstudent
node_mewmain1 -->|"calls student operations"| node_mewstudent
node_lowstudent -->|"queries and updates"| node_studentdb
node_mewstudent -->|"queries and updates"| node_studentdb
node_lowmain -->|"connects to"| node_studentdb
node_mewmain1 -->|"connects to"| node_studentdb
node_registration -->|"inserts account"| node_userdb
node_passwords -->|"checks and updates"| node_userdb
node_trees -.-> node_lists

click node_lowmain "https://github.com/hbqiu/qiu_c_code/blob/main/student_low/str/main.c"
click node_mewmain "https://github.com/hbqiu/qiu_c_code/blob/main/student_mew/str/main.c"
click node_mewmain1 "https://github.com/hbqiu/qiu_c_code/blob/main/student_mew/str/main1.c"
click node_lowstudent "https://github.com/hbqiu/qiu_c_code/blob/main/student_low/str/student.c"
click node_mewstudent "https://github.com/hbqiu/qiu_c_code/blob/main/student_mew/str/student.c"
click node_registration "https://github.com/hbqiu/qiu_c_code/blob/main/student_low/str/add.c"
click node_passwords "https://github.com/hbqiu/qiu_c_code/blob/main/student_low/str/uppass.c"
click node_mysqlvariants "https://github.com/hbqiu/qiu_c_code/tree/main/mysql"
click node_lists "https://github.com/hbqiu/qiu_c_code/blob/main/%E5%8F%8C%E5%90%91%E9%93%BE%E8%A1%A8.c"
click node_queues "https://github.com/hbqiu/qiu_c_code/blob/main/%E9%98%9F%E5%88%97.c"
click node_trees "https://github.com/hbqiu/qiu_c_code/blob/main/%E6%90%9C%E7%B4%A2%E4%BA%8C%E5%8F%89%E6%A0%91.c"
click node_sorting "https://github.com/hbqiu/qiu_c_code/blob/main/%E5%86%92%E6%B3%A1%E6%8E%92.c"
click node_smallprograms "https://github.com/hbqiu/qiu_c_code/blob/main/%E4%B8%A4%E4%B8%AA%E6%95%B0%E8%AE%A1%E7%AE%97/main1.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_lowmain,node_mewmain,node_mewmain1,node_lowstudent,node_mewstudent,node_studentdb,node_user toneBlue
class node_registration,node_passwords,node_userdb,node_mysqlvariants toneAmber
class node_lists,node_queues,node_trees,node_sorting,node_smallprograms toneMint
```

## Components

### Student manager

- [Low menu](https://github.com/hbqiu/qiu_c_code/blob/main/student_low/str/main.c): `student_low/str/main.c`
- [Mew menu](https://github.com/hbqiu/qiu_c_code/blob/main/student_mew/str/main.c): `student_mew/str/main.c`
- [Mew menu variant](https://github.com/hbqiu/qiu_c_code/blob/main/student_mew/str/main1.c): `student_mew/str/main1.c`
- [Student operations](https://github.com/hbqiu/qiu_c_code/blob/main/student_low/str/student.c): `student_low/str/student.c`
- [Student operations](https://github.com/hbqiu/qiu_c_code/blob/main/student_mew/str/student.c): `student_mew/str/student.c`
- **MySQL student data**

### Accounts and access

- [User registration](https://github.com/hbqiu/qiu_c_code/blob/main/student_low/str/add.c): `student_low/str/add.c`
- [Password verification and changes](https://github.com/hbqiu/qiu_c_code/blob/main/student_low/str/uppass.c): `student_low/str/uppass.c`
- **MySQL account data**
- [MySQL account implementations](https://github.com/hbqiu/qiu_c_code/tree/main/mysql): `mysql`

### C exercises

- [Linked lists and stacks](https://github.com/hbqiu/qiu_c_code/blob/main/%E5%8F%8C%E5%90%91%E9%93%BE%E8%A1%A8.c): `双向链表.c`
- [Queue examples](https://github.com/hbqiu/qiu_c_code/blob/main/%E9%98%9F%E5%88%97.c): `队列.c`
- [Search and balanced trees](https://github.com/hbqiu/qiu_c_code/blob/main/%E6%90%9C%E7%B4%A2%E4%BA%8C%E5%8F%89%E6%A0%91.c): `搜索二叉树.c`
- [Sorting and search](https://github.com/hbqiu/qiu_c_code/blob/main/%E5%86%92%E6%B3%A1%E6%8E%92.c): `冒泡排.c`
- [Small C programs](https://github.com/hbqiu/qiu_c_code/blob/main/%E4%B8%A4%E4%B8%AA%E6%95%B0%E8%AE%A1%E7%AE%97/main1.c): `两个数计算/main1.c`

### Other components

- **Console user**

## Connections

- Console user → Low menu: selects actions (evidence: `student_low/str/main.c`)
- Console user → Mew menu: selects actions (evidence: `student_mew/str/main.c`)
- Console user → Mew menu variant: selects actions (evidence: `student_mew/str/main1.c`)
- Low menu → User registration: registers via (evidence: `student_low/str/main.c`)
- Mew menu → User registration: registers via
- Mew menu variant → User registration: registers via (evidence: `student_mew/str/main1.c`)
- Low menu → Password verification and changes: handles passwords (evidence: `student_low/str/main.c`)
- Mew menu → Password verification and changes: handles passwords
- Mew menu variant → Password verification and changes: handles passwords (evidence: `student_mew/str/main1.c`)
- Low menu → Student operations: calls student operations (evidence: `student_low/str/main.c`)
- Mew menu → Student operations: calls student operations (evidence: `student_mew/str/main.c`)
- Mew menu variant → Student operations: calls student operations (evidence: `student_mew/str/main1.c`)
- Student operations → MySQL student data: queries and updates (evidence: `student_low/str/student.c`)
- Student operations → MySQL student data: queries and updates (evidence: `student_mew/str/student.c`)
- Low menu → MySQL student data: connects to (evidence: `student_low/str/main.c`)
- Mew menu variant → MySQL student data: connects to (evidence: `student_mew/str/main1.c`)
- User registration → MySQL account data: inserts account (evidence: `student_low/str/add.c`)
- Password verification and changes → MySQL account data: checks and updates (evidence: `student_low/str/uppass.c`)
- Search and balanced trees → Linked lists and stacks
