Welcome to Cocktail Randomizer, a simple console application in C++ that allows you to randomly select cocktail recipes.
This project demonstrates basic usage of classes and vectors in C++. It simulates a cocktail randomizer that selects from a predefined list of cocktails and displays their ingredients.
- Random Cocktail Selection: Press Enter to randomly select a cocktail from a list.
- Exit Option: Press 'x' to exit the program.
- Predefined Cocktails: Includes classic cocktails like Mojito, Pina Colada, Margarita, and Cosmopolitan.
-
Compile the Program: Use a C++ compiler to compile the program.
-
Run the Program: Execute the compiled executable.
-
Interact with the Program:
- Press Enter to randomly select a cocktail.
- Press 'x' to exit the program.
Upon selecting a cocktail, the program will display the cocktail's name and list its ingredients.
- C++ compiler (e.g., GCC, Clang, MSVC)
- Standard C++ libraries (
iostream,vector,cstdlib,ctime)
To compile the program, use the following command:
g++ -o CocktailRandomizer main.cpp
./CocktailRandomizer