# quang-lam1412/c architecture

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

- Interactive diagram: https://gitdiagram.com/quang-lam1412/c
- Repository: https://github.com/quang-lam1412/c

## Overview

This repository is a collection of standalone C programming exercises, not one integrated application. Its user-to-result pattern is generally a small program that accepts or initializes values, performs one algorithm, and prints a result. The clearest end-to-end workflow is the student-management menu: it dispatches add, search, delete, and list actions over in-memory student arrays. Other branches cover fundamentals, numeric algorithms, arrays, and strings. The tree and excerpts show independent programs; no shared runtime or common data layer is evidenced.

Main entry points: [`50-studentManagement/main.c`](https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c) (Menu Loop), [`43-delSubInArr/main.c`](https://github.com/quang-lam1412/c/blob/master/43-delSubInArr/main.c) (Subarray Operations), [`46-StringBase3/main.c`](https://github.com/quang-lam1412/c/blob/master/46-StringBase3/main.c) (Substring Operations), [`34-sumArray/main.c`](https://github.com/quang-lam1412/c/blob/master/34-sumArray/main.c) (Array Aggregation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["C Fundamentals"]
  node_fundamentals["Types And Control Flow<br/>[main.c]"]
end

subgraph group_numeric["Numeric Exercises"]
  node_numeric["Numeric Programs<br/>[main.c]"]
end

subgraph group_arrays["Array Exercises"]
  node_array_basics["Array Basics<br/>[main.c]"]
  node_array_aggregate["Array Aggregation<br/>[main.c]"]
  node_array_transform["Array Transformations<br/>[main.c]"]
  node_array_split["Array Splitting<br/>[main.c]"]
  node_array_edit["Array Editing<br/>[main.c]"]
  node_array_delete["Array Deletion<br/>[main.c]"]
  node_array_subsequence["Subarray Operations<br/>[main.c]"]
end

subgraph group_strings["String Exercises"]
  node_string_basics["String Basics<br/>[main.c]"]
  node_string_transform["Name And Word Processing<br/>[main.c]"]
  node_string_search["Substring Operations<br/>[main.c]"]
end

subgraph group_students["Student Management"]
  node_student_cli["Menu Loop<br/>[main.c]"]
  node_student_menu["Menu Display<br/>[main.c]"]
  node_student_add["Add Student<br/>[main.c]"]
  node_student_find["Find By ID<br/>[main.c]"]
  node_student_print["Print Student Records<br/>[main.c]"]
  node_student_remove["Remove Student<br/>[main.c]"]
  node_student_state[("Student Arrays<br/>[main.c]")]
end

node_terminal(("User"))

node_terminal -->|"chooses actions"| node_student_cli
node_student_cli -->|"displays menu"| node_student_menu
node_student_cli -->|"dispatches add"| node_student_add
node_student_cli -->|"dispatches lookup"| node_student_find
node_student_cli -->|"dispatches listing"| node_student_print
node_student_cli -->|"dispatches delete"| node_student_remove
node_student_cli -->|"holds records"| node_student_state
node_student_add -->|"updates records"| node_student_state
node_student_find -->|"searches IDs"| node_student_state
node_student_cli -->|"looks up ID"| node_student_find
node_student_cli -->|"removes match"| node_student_remove
node_student_remove -->|"shifts records"| node_student_state
node_student_print -->|"reads records"| node_student_state
node_student_cli -->|"prints match"| node_student_print
node_array_aggregate -->|"checks primes"| node_numeric
node_array_subsequence -->|"calls splice"| node_array_delete
node_array_subsequence -->|"searches then deletes"| node_array_subsequence
node_string_transform -->|"uses string edits"| node_string_search
node_string_search -->|"finds then removes"| node_string_search

click node_fundamentals "https://github.com/quang-lam1412/c/blob/master/01-datatype/main.c"
click node_numeric "https://github.com/quang-lam1412/c/blob/master/06-quadraticEquation/main.c"
click node_array_basics "https://github.com/quang-lam1412/c/blob/master/32-array/main.c"
click node_array_aggregate "https://github.com/quang-lam1412/c/blob/master/34-sumArray/main.c"
click node_array_transform "https://github.com/quang-lam1412/c/blob/master/37-arrayAssignmentWork/main.c"
click node_array_split "https://github.com/quang-lam1412/c/blob/master/40-divideArray/main.c"
click node_array_edit "https://github.com/quang-lam1412/c/blob/master/41-insertArray/main.c"
click node_array_delete "https://github.com/quang-lam1412/c/blob/master/42-deleteArray/main.c"
click node_array_subsequence "https://github.com/quang-lam1412/c/blob/master/43-delSubInArr/main.c"
click node_string_basics "https://github.com/quang-lam1412/c/blob/master/45-stringBase1/main.c"
click node_string_transform "https://github.com/quang-lam1412/c/blob/master/48-stringWork2/main.c"
click node_string_search "https://github.com/quang-lam1412/c/blob/master/46-StringBase3/main.c"
click node_student_cli "https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c"
click node_student_menu "https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c"
click node_student_add "https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c"
click node_student_find "https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c"
click node_student_print "https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c"
click node_student_remove "https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c"
click node_student_state "https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.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_fundamentals,node_terminal toneBlue
class node_numeric toneAmber
class node_array_basics,node_array_aggregate,node_array_transform,node_array_split,node_array_edit,node_array_delete,node_array_subsequence toneMint
class node_string_basics,node_string_transform,node_string_search toneRose
class node_student_cli,node_student_menu,node_student_add,node_student_find,node_student_print,node_student_remove,node_student_state toneIndigo
```

## Components

### C Fundamentals

- [Types And Control Flow](https://github.com/quang-lam1412/c/blob/master/01-datatype/main.c): `01-datatype/main.c`

### Numeric Exercises

- [Numeric Programs](https://github.com/quang-lam1412/c/blob/master/06-quadraticEquation/main.c): `06-quadraticEquation/main.c`

### Array Exercises

- [Array Basics](https://github.com/quang-lam1412/c/blob/master/32-array/main.c): `32-array/main.c`
- [Array Aggregation](https://github.com/quang-lam1412/c/blob/master/34-sumArray/main.c): `34-sumArray/main.c`
- [Array Transformations](https://github.com/quang-lam1412/c/blob/master/37-arrayAssignmentWork/main.c): `37-arrayAssignmentWork/main.c`
- [Array Splitting](https://github.com/quang-lam1412/c/blob/master/40-divideArray/main.c): `40-divideArray/main.c`
- [Array Editing](https://github.com/quang-lam1412/c/blob/master/41-insertArray/main.c): `41-insertArray/main.c`
- [Array Deletion](https://github.com/quang-lam1412/c/blob/master/42-deleteArray/main.c): `42-deleteArray/main.c`
- [Subarray Operations](https://github.com/quang-lam1412/c/blob/master/43-delSubInArr/main.c): `43-delSubInArr/main.c`

### String Exercises

- [String Basics](https://github.com/quang-lam1412/c/blob/master/45-stringBase1/main.c): `45-stringBase1/main.c`
- [Name And Word Processing](https://github.com/quang-lam1412/c/blob/master/48-stringWork2/main.c): `48-stringWork2/main.c`
- [Substring Operations](https://github.com/quang-lam1412/c/blob/master/46-StringBase3/main.c): `46-StringBase3/main.c`

### Student Management

- [Menu Loop](https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c): `50-studentManagement/main.c`
- [Menu Display](https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c): `50-studentManagement/main.c`
- [Add Student](https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c): `50-studentManagement/main.c`
- [Find By ID](https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c): `50-studentManagement/main.c`
- [Print Student Records](https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c): `50-studentManagement/main.c`
- [Remove Student](https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c): `50-studentManagement/main.c`
- [Student Arrays](https://github.com/quang-lam1412/c/blob/master/50-studentManagement/main.c): `50-studentManagement/main.c`

### Other components

- **User**

## Connections

- User → Menu Loop: chooses actions (evidence: `50-studentManagement/main.c`)
- Menu Loop → Menu Display: displays menu (evidence: `50-studentManagement/main.c`)
- Menu Loop → Add Student: dispatches add (evidence: `50-studentManagement/main.c`)
- Menu Loop → Find By ID: dispatches lookup (evidence: `50-studentManagement/main.c`)
- Menu Loop → Print Student Records: dispatches listing (evidence: `50-studentManagement/main.c`)
- Menu Loop → Remove Student: dispatches delete (evidence: `50-studentManagement/main.c`)
- Menu Loop → Student Arrays: holds records (evidence: `50-studentManagement/main.c`)
- Add Student → Student Arrays: updates records (evidence: `50-studentManagement/main.c`)
- Find By ID → Student Arrays: searches IDs (evidence: `50-studentManagement/main.c`)
- Menu Loop → Find By ID: looks up ID (evidence: `50-studentManagement/main.c`)
- Menu Loop → Remove Student: removes match (evidence: `50-studentManagement/main.c`)
- Remove Student → Student Arrays: shifts records (evidence: `50-studentManagement/main.c`)
- Print Student Records → Student Arrays: reads records (evidence: `50-studentManagement/main.c`)
- Menu Loop → Print Student Records: prints match (evidence: `50-studentManagement/main.c`)
- Array Aggregation → Numeric Programs: checks primes (evidence: `34-sumArray/main.c`)
- Subarray Operations → Array Deletion: calls splice (evidence: `43-delSubInArr/main.c`)
- Subarray Operations → Subarray Operations: searches then deletes (evidence: `43-delSubInArr/main.c`)
- Name And Word Processing → Substring Operations: uses string edits (evidence: `48-stringWork2/main.c`)
- Substring Operations → Substring Operations: finds then removes (evidence: `46-StringBase3/main.c`)
