Class Notes (1,100,000)
CA (630,000)
UW (20,000)
CS (1,000)
CS138 (10)
Lecture 3

CS138 Lecture Notes - Lecture 3: Bruce Eckel, Concatenation, Entry Point


Department
Computer Science
Course Code
CS138
Professor
Michael Godfrey
Lecture
3

This preview shows page 1. to view the full 4 pages of the document.
Data Lecture 3
January 15, 2012
C++ References
Thinking in C++ by Bruce Eckel
o http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html
Professional programmer help forum
o http://Stackoverflow.com
C++ Standard Library API reference
o http://www.cplusplus.com/reference/
Advice
Always use curly brackets for if/switch/for/while
Use ++/-- operators as standalone stmt
Prefer for over while loops, if a for makes sense
struct vs. class
o If you’re going to program in procedural style and not define methods per entity kind, then
use STRUCTS
o If you’re going to program in OO style and define methods per entity kind, use CLASSES to
organize data and operations on them
o Don’t mix struct and class
You're Reading a Preview

Unlock to view full version