Coder Social home page Coder Social logo

yuhanpizza / customerordermanagementsystem Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

Hey there ๐Ÿ‘‹! This C++ project is your go-to client-side application for a shopping system that's fully integrated with an Oracle database. Below is a quick rundown of what's under the hood.

C++ 100.00%
cpp error-handling oracle-database try-catch

customerordermanagementsystem's Introduction

Welcome to the Shopping System Client

Hey there ๐Ÿ‘‹! This C++ project is your go-to client-side application for a shopping system that's fully integrated with an Oracle database. Below is a quick rundown of what's under the hood.

๐Ÿ›  Main Components

  • ShoppingCart Struct: Think of it as your virtual cart where you stash all the products you're interested in.
  • Connection and Environment Variables: These guys make sure we can chat with the Oracle database smoothly.
  • Main and Sub-Menus: Simple and intuitive UI for you to navigate through login and customer service options.

๐Ÿ“š Main Functions

  • mainMenu() and subMenu(): These show you your basic choicesโ€”log in, customer service, and so on.
  • customerService(): Once you're in, here's where you can place an order, check its status, or even cancel it.
  • displayOrderStatus(): Feeling anxious? Check how far along your order is!
  • cancelOrder(): Changed your mind? No worriesโ€”just cancel it right here.
  • createEnvironment() and terminateEnvironment(): These set up and tear down your connection to the Oracle database.
  • openConnection() and closeConnection(): Self-explanatory, reallyโ€”get connected and then say goodbye.
  • customerLogin(): This function checks if you're in the database before letting you in.
  • addToCart(): See something you like? Add it to your cart!
  • displayProducts(): Peek inside your cart whenever you like.
  • checkout(): Ready to make it official? This will process your order and update the database.

๐Ÿ“‚ Database Interactions

  • find_customer Procedure: This helps customerLogin() confirm you're an existing customer.
  • find_product Procedure: Used by addToCart() to find out how much you need to pay for that awesome product.

๐Ÿšจ Note: The code seems to be a work in progressโ€”so don't be surprised if some functions like findProduct() or checkout() are still getting dressed (i.e., they're called but not fully implemented).

๐Ÿ›ก Error Handling

We've got try-catch blocks in place for dealing with any SQL mishaps, so rest easy!

๐ŸŽฌ Program Flow

  1. You're greeted with a main menu: Login or Exit.
  2. If you opt to login, the program checks if you're in the database.
  3. If you are, welcome aboard! You'll see a customer service menu where you can place, check, or cancel your orders.

That's the grand tour! Feel free to dive in and explore. Happy shopping! ๐Ÿ›’

customerordermanagementsystem's People

Contributors

yuhanpizza avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.