Giter VIP home page Giter VIP logo

stanford-cs106b's Introduction

Stanford Open Course cs106b

Updated from 2008 to 2017 C++ standards.

Stanford made one year of their "cs106b: Programming Abstractions" course open to the public. The source code within this project is an updated version of the material presented by Julie Zelenski when she taught this course in 2008.

Setup

  • Work was done using Unix(Mac).
  • C++ version is: Apple LLVM version 8.1.0 (clang-802.0.42)
  • Install Xcode: Version 8.3.3 (8E3004b)
  • Install JVM
  • In terminal:
    • clone repository git clone https://github.com/LauraKirby/stanford-cs106b.git
    • move into the root directory of stanford-cs106b:
      • cd stanford-cs106b
    • from here, print the current working directory:
      • pwd
      • my path looks like: /Users/laurakirby/Desktop/stanford-cs106b
    • Stanford has done some extra work to standardize how the programs are run. You will need to set an environment variable that lets your program know where to find the spl.jar file.
      • launchctl setenv SPL_HOME '/your/path/from/pwd

Sources

Debugging

  • If Xcode doesn't recognize the "example.txt" file
    • In the Xcode (v7.1.1 at the time of writing) [modification: I am using 8.3.3 and comment remains relevant] sidebar, there's an automatically generated folder called "Products". Inside you'll find the executable of your project (assuming you've built your project at least once). Right-click it & choose "Show in Finder". A folder will open in Finder. That's the working directory of your program, & you'll notice it's not actually inside your project's folder.
    • You can have Xcode use a different directory instead. In the top toolbar, on the left side where it shows your project name next to the active build architecture, click on the Project name > Edit Scheme…
    • Then look for an option called "Working Directory" in the sheet that appears. Tick the checkbox & then choose a custom directory. Note: Make sure the "Run" option is the selected one in that sheet's sidebar. [source: Mahouk's response within Stackoverflow ]

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.