https://github.com/blessin03/digital-console-clock
A C++ console clock with color and modular design
https://github.com/blessin03/digital-console-clock
console-app cplusplus digital-clock learning-project
Last synced: 11 months ago
JSON representation
A C++ console clock with color and modular design
- Host: GitHub
- URL: https://github.com/blessin03/digital-console-clock
- Owner: Blessin03
- Created: 2025-06-26T16:58:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-01T13:07:43.000Z (about 1 year ago)
- Last Synced: 2025-07-01T13:48:22.385Z (about 1 year ago)
- Topics: console-app, cplusplus, digital-clock, learning-project
- Language: C++
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Digital Console Clock
> A C++ console clock with zero-padded time, colorized seconds, and a clean class-based design.
---
## Overview
The **Digital Console Clock** is a lightweight C++ program that turns your Windows terminal into a live, real-time clock.
I built it to sharpen my skills with:
- Modern C++17 (``, ``, ``)
- Windows-specific console APIs (`SetConsoleTextAttribute`)
- Modular, header-driven class design
---
## Screenshots


---
## Build Instructions
Open a Developer PowerShell or comand prompt in the project folder and compile **both** source files:
```bash
# Using MinGW g++
g++ main.cpp clock.cpp -o clock.exe
```
## Usage
```bash
./clock.exe
```
Enter the starting hour (0–23), minute (0–59), and second (0–59).
Watch the clock update every second.
Press Ctrl + C to stop.
---
## Prerequisites
- Windows 10/11 console (PowerShell or CMD)
- A C++17-capable compiler: MinGW’s `g++` **or** Visual Studio’s MSVC