Giter VIP home page Giter VIP logo

bracket-checker's Introduction

Bracket Checker Program

  • by Don Castillo [email protected] Student#: 001224541
  • Assignment in CPSC 3620: Data Structures and Algorithm

download the repository from: https://github.com/DonCastillo/bracket-checker.git

HOW TO USE THE PROGRAM:

An instruction will be initially displayed in the console, together with the command keys that the user can type in to either quit the program (type 'Q') or display the instruction again (type 'H').

The user can type a string of mathematical expression in the "Enter an expression" field. As the user presses ENTER, the program will determine if the expression is nested properly or not, meaning if the bracket operators in the expression has a matching opening or closing operator of its kind. The valid pair of bracket operators are ( ), { }, [ ].

"Brackets are properly nested" will display if the expression is nested properly

"Brackets are NOT properly nested" will display if the expression is not nested properly

"No brackets in the expression" will display if the expression does not have any bracket operator

HOW TO RUN/COMPILE THE PROGRAM:

The program was written in C++ programming language, and Code::Blocks as its IDE. To run the program, it is better if it's ran via Code::Blocks as well. The repository bracket-checker contains a bracket-checker.cbp that you must open to be directed to the bracket-checker workspace.

To retrieve all necessary files, click on Project > Add Files Recursively, and from there add all the files in the directory src/ and include/. src/ contains all the .cpp files and include/ contains all the header files.

Go to Project > Build Options, then select bracket-checker that is in the left pane of the window. Click on the Compiler Setting and make sure that "Have g++ follow the C++11 ISO C++ language standard [-std=c++11]" is checked to make sure the program uses the imported libraries with no error. Also make sure that the selected compiler is GNU GCC Compiler.

HOW TO DOWNLOAD FROM THE REPOSITORY

Using git, enter this command:

git clone https://github.com/DonCastillo/bracket-checker.git

The online repository is in public and can be accessed anywhere

bracket-checker's People

Contributors

doncastillo avatar

Watchers

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