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.
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:
listcurrently shells out to Windows'dircommand, so this program runs on Windows only.
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).
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.
- A C++ compiler (e.g.
g++)
Each file compiles independently:
g++ FileManager.cpp -o filemanager
./filemanager
g++ Sudoku.cpp -o sudoku
./sudoku
g++ guessthenoGame.cpp -o guessgame
./guessgame
FileManager.cppuses Windows-specific commands, so compile and run it on Windows (or WSL with Windows commands available).