This is a C++ implementation of a credit card validator using Object-Oriented Programming (OOP) principles and Luhn's algorithm.
- Validates credit card numbers using the Luhn algorithm.
- Implements the solution using OOP concepts like classes, methods, and encapsulation.
The Luhn algorithm is used to validate various identification numbers, especially credit card numbers. It works by performing a checksum to determine whether the card number is valid or not.
git clone https://github.com/gtRZync/credit-card-validator.gitcd credit-card-validatormake runThis will automatically compile the source files and run the program. Make sure you have
makeandg++installed on your system or modify the makefile to use your desired compiler.
- Input a credit card number when prompted.
- The program will output whether the card number is valid or invalid based on the Luhn algorithm.
Enter credit card number: 4532015112830366
Credit card number is valid!
This project is licensed under the MIT License.
GUI version perhaps