Tag: c++

Simple Animation to Race a Drunk Man from Start to Finish with C++

This is an interactive console animation app, where your choice of character (any letter from a to z) will appear to move funnily from start to finish line. If he finishes the race within the specified counter (in our case, 1000000), then we print a particular message, else another message. You can find the source…
Read more

Sudoku Game with C++

We all know about the popular Sudoku game, wherein we need to arrange numbers from 1-9 such that they appear only once in a row and column of a 9×9 grid. The program uses the concept of backtracking. In this program, we have hard-coded the initial values, but you can also get the same input…
Read more

Credit Card Validator with C++

This is a simple project that uses Luhn’s algorithm to validate a user’s credit card. The program works for all popular cards like Visa, Amex, MasterCard, etc. Luhn’s algorithm checks for basic validations; for example, a Visa card should start with 4 and then moves on to complex digit-wise calculations. It is a good program…
Read more

Using Graphics to Draw and Move Shapes with C++

In this graphics program, you will learn to make a car and then make it move using graphics. This is a simple program written using Turbo C++; however, the same program will work on other IDEs like Dev C++. Code:: Blocks and Visual Studios. You have to get the graphics.h file for the program to…
Read more

Helicopter Game with C++

For all the 90s kids, this was one of the most favorite games and very easy to implement! In this project, we will use SDL graphics. The goal of the game is to move the helicopter forward without touching the obstacles. The player should control the game through keys, holding the key moves the helicopter,…
Read more

Casino Number Guessing Game with C+

This is an exciting project, where we will learn about the library used for random numbers: cstdlib. The program asks for a betting amount and then asks the user to guess a number on rolling. If the random number generated matches the user input, he wins, else money is deducted. The user can keep playing…
Read more

Student Report Management System

Through this project, we can learn a lot about input/output streams and the file management system of C++. Our program collects student details like name, roll number, marks in each subject, and calculates their grade. This is a simple console app. Note that we focus only on the correct inputs in this project, and you…
Read more

Bookshop Inventory System with C++

This is a simple project where the system maintains the inventory of books in a bookshop. If a customer purchases a book, the book’s count will decrease; if a book is added, the same is updated. Notice the use of pointers. You can modify the code to add a book ID and make the search…
Read more

Car Rental System with C++

This is a trendy project and very useful for learning about keyboard events, date-time functions, and implementing a C++ login system. The program has separate menus for admin and other users. There are also methods to calculate fares based on time and distance, including displaying car details, availability, etc. Check the source code on GitHub.…
Read more