Week 1 Discussion

Written by John Pham

House Cleaning

Make sure to bring your laptops to each session. We will be practicing what is covered in lecture through application. You can choose to program either on Cloud9 or locally.

Lesson Plan

We will be reviewing CS10 material this week.

  • Variables
  • Types
    • int
    • double
    • string
  • Vectors
  • Arrays
  • Pass by value vs. pass by reference
  • Functions

Exercises

  1. Write a function that swaps the values in 2 variables
  2. Write a function that reverses a string
  3. Write a function that reverses a vector