Skip to content

Randomly selects the name of the cocktail and its recipe

License

Notifications You must be signed in to change notification settings

Asdeks/Cocktail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cocktail Randomizer

Welcome to Cocktail Randomizer, a simple console application in C++ that allows you to randomly select cocktail recipes.

Overview

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.

Features

  • 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.

How to Use

  1. Compile the Program: Use a C++ compiler to compile the program.

  2. Run the Program: Execute the compiled executable.

  3. Interact with the Program:

    • Press Enter to randomly select a cocktail.
    • Press 'x' to exit the program.

Example Output

Upon selecting a cocktail, the program will display the cocktail's name and list its ingredients.

Dependencies

  • C++ compiler (e.g., GCC, Clang, MSVC)
  • Standard C++ libraries (iostream, vector, cstdlib, ctime)

Compilation

To compile the program, use the following command:

g++ -o CocktailRandomizer main.cpp
./CocktailRandomizer

About

Randomly selects the name of the cocktail and its recipe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages