Giter Site home page Giter Site logo

jacintogomez / tandon_bridge_resources Goto Github PK

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

Various scripts related to NYU Tandon Bridge topics (mostly OOP)

C++ 100.00%
arrays binary-search-tree linked-list overloading typedef encapsulation object-oriented-programming pointers polymorphism smart-pointers file-reading file-writing

tandon_bridge_resources's Introduction

Tandon Bridge Resources

BSTTemplate.cpp: Template file for a Binary Search Tree with add/delete and print functions.

LLTemplate.cpp: Template file for a Linked List with add/remove and print functions.

LLnoTemplate.cpp: Same as previous Linked List but without templating the classes.

SmartPointers.cpp: Unique, shared, and weak smart pointer examples.

marriage.cpp : Demonstration of objects with pointers to each other.

overloading.cpp: Demonstration of operator overloading ==, +=, -, <<, >>, [], ++(pre/post).

LLandBSTtraversal.cpp: Comparison between contents of a BST and LL with a recursive function that goes through both simultaneously.

polymorphism.cpp: Dynamic binding of function in an Animal class and child classes.

BaseDerived.cpp: Shows another type of polymorphism called slicing where a derived class loses its functions when declared as a base object.

BaseDerivedPointers.cpp: Shows how slicing does NOT happen when we replicate the situation above with pointers to objects instead of just objects.

encapsulation.cpp: Example of a bank account with credit card and debit card classes accessing its protected members.

HugeInt.cpp: Shows file reading and writing by taking in a huge int (much larger than C++ can handle) and storing it in a Linked List for addition with another.

TypeDef.cpp: Using typedef in replacement of long declarations (instead of vector<vector<vector>>).

TypeDefFunctions.cpp: Using typedef to insert functions into a vector and iterate through them like elements.

tandon_bridge_resources's People

Contributors

jacintogomez avatar

Stargazers

 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.