Skip to content

β˜•πŸ© A coffee shop program to order coffees/donuts and print your checkout !

Notifications You must be signed in to change notification settings

Lucas-132/coffee_shop_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Coffee shop c++ app β˜•

an image of a cafe interior

How to run program ?

While on project folder in cmd type the following command: coffee_shop_app

Or simply double click the .exe file alhough it might close the program windows as soon as you print your checkout

How to use this app ?

Upon running the app, you'll have different choices presenting themselves to you such as buying coffees or donuts.

Once you made your choice just enter your choice's number then press enter

Once finished, you can print your checkout by entering 0 in the command prompt.

Video preview:

coffee_shop_app_preview.mp4

Add your own coffees/donuts β˜•πŸ©

1) Go to the IntializeShop.cpp file inside the src folder :

image

2) Instantiate your coffee/donut like so:

image

Coffee arguments :

image

Donut arguments :

image

3) Add your custom coffee/donut to the buyable products list :

image

4) Enjoy your coffee/donut !

image

What I learned / used making this project 🧠

  • C++ Typo which is by the way way more strict that python
  • Basic Object Oriented Programming including private/public functions/attributes, and class inheritance
  • Code splitting, requiring the use of Headers files
  • Basic Stream behaviour notions understanding such as buffers or stream chaining
  • Basic preprocessor directive notions

    Alhough we already saw these in class, I wanted to put some of these knowledges in use through a small project rather than separated exercices

About

β˜•πŸ© A coffee shop program to order coffees/donuts and print your checkout !

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages