lect01 Slides | Next Lecture |
Basic info
- Course: CS16, Fall 2018, Lecture: Chem 1171 12:30pm-1:45pm
- Discussions: Wednesdays, Phelps 3525, 1pm, 2pm, 3pm, 4pm (50 minutes each)
- Instructor: Prof. Diba Mirza diba@ucsb.edu
- Website: http://ucsb-cs16-f18-mirza.github.io
Info for Crashers
We are overenrolling the course beyond the lab capacity; the highest positions on the waitlist are being offered add codes today. If you don’t get an add code today, you won’t get an add code for this section.
An additional lecture section of CS16 has been added with lectures in NH 1105, TR 2-3:15, and discussion sections at 5pm and 6pm. Information about the waitlist for that section will be announced at that lecture.
Topics
Course logistics
- Explore the course website and READ the syllabus
- Get to know your mentor and ask about how to use Piazza for future communication
- Ask questions about the course on Piazza (don’t send emails to TAs and instructor)
- If you email the instructor have [CS16] in the subject and a brief description of your question
Concepts
- Structure of a C++ program
- the main function
namepsace
andinclude
directives- commenting your code
- standard input, standard output and standard error with
cin
,cout
,cerr
- The three stages of writing and executing C++ code: editing, compiling, (linking and) executing
- Compiling code with
g++
- Finding your way around with basic unix commands -
mkdir
,ls
,cp
,mv
,rm
(use with caution because it deletes files irrecoverably) - Choosing an editor (vim or emacs)- may the best editor win!
- Remote login with ssh
- High level introduction to tools: gradescope, github
Probably won’t get to today…
- Five components of a computer and why it matters