https://github.com/hptrk/uni-spiralmatrix-c
(UNIVERSITY) C program for generating, saving, and loading counterclockwise spiral matrices (1×1 to 20×20).
https://github.com/hptrk/uni-spiralmatrix-c
c matrix university-project
Last synced: 2 months ago
JSON representation
(UNIVERSITY) C program for generating, saving, and loading counterclockwise spiral matrices (1×1 to 20×20).
- Host: GitHub
- URL: https://github.com/hptrk/uni-spiralmatrix-c
- Owner: hptrk
- Created: 2025-02-07T17:05:53.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-07T17:13:11.000Z (3 months ago)
- Last Synced: 2025-02-07T18:23:46.285Z (3 months ago)
- Topics: c, matrix, university-project
- Language: C
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🌀 Spiral Matrix Generator
This project is a **C program** that allows users to **generate, save, and load** spiral matrices of sizes between **1x1 and 20x20**.
It was developed as part of a **university assignment at ELTE**.## 📜 Features
- ✅ **Generate spiral matrices**
- ✅ **Choose direction:** left, right, up, or down
- ✅ **Save matrices** to a text file
- ✅ **Load matrices** from a text file
- ✅ **Print matrices** in a formatted way
- ✅ **User-friendly menu interface**## 🛠️ How It Works
1. Run the program.
2. Choose an option from the **interactive menu**:
- `0` - View the **user guide**
- `1` - **Generate** a new matrix
- `2` - **Save** the current matrix
- `3` - **Load** a matrix from a file
- `4` - **Print** the current matrix
- `5` - **Exit** the program
3. When generating a matrix:
- **Choose a size** (between `1-20`)
- **Select a starting direction** (`left`, `right`, `up`, `down`)
- **Specify rotation** (`ccw` – counterclockwise)
4. View, save, or load your matrix as needed!---
⭐ This was a university project and is not actively maintained.