Skip to content

About

A collection of beginner C++ console programs a file manager, Sudoku solver, and number-guessing game.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

CodeAlpha Tasks

A collection of beginner C++ console programs, completed as part of a set of introductory internship tasks. Each program is self-contained and demonstrates a different core C++ concept.

Projects

1. File Manager (FileManager.cpp)

A simple command-line file manager that lets you browse and view files from the terminal.

Commands:

Command Description
list <path> Lists files/folders in the given directory
view <file> Prints the contents of a file
exit Exits the program

Note: list currently shells out to Windows' dir command, so this program runs on Windows only.

2. Sudoku Solver (Sudoku.cpp)

A backtracking Sudoku solver for standard 9x9 grids. Two sample puzzles are hardcoded in main(), and the program prints each board before and after solving.

Concepts used: 2D vectors, recursion/backtracking, constraint checking (row, column, and 3x3 sub-grid rules).

3. Guess the Number (guessthenoGame.cpp)

A number-guessing game where the player has 7 tries to guess a randomly generated number between 1 and 100, with escalating hints (too high/low, greater/less than 50, odd/even, proximity) as tries run out.

Getting Started

Prerequisites

  • A C++ compiler (e.g. g++)

Compiling and Running

Each file compiles independently:

g++ FileManager.cpp -o filemanager
./filemanager

g++ Sudoku.cpp -o sudoku
./sudoku

g++ guessthenoGame.cpp -o guessgame
./guessgame

FileManager.cpp uses Windows-specific commands, so compile and run it on Windows (or WSL with Windows commands available).

Author

Eshaal607

About

A collection of beginner C++ console programs a file manager, Sudoku solver, and number-guessing game.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages