A quick review of C++
- About my notes:
- They are for me, to remind me what to cover.
- They will be available before class (mostly)
- They might be more/less complete, depending on the topic.
- We will probably depart from them quite a bit as we go.
- Basic Unix
- make sure you can get to ~dbennett/230
- ls
- cp
- mkdir
- cd
- mv
- What is C?
- What is C++?
- Basic program shell (write hello world)
- Compiling and basic Make.
- What is an identifier?
- What are the rules for making them?
- Where are they used?
- What are the conventions for making them?
- 4 basic data types.
- Two (at least) complex data types
- How are these different.
- Constants
- What are they?
- Where are they declared
- Conventions for use?
- Control structures
- What are the basic control structures?
- Write a program that reads a file of integers, one per line and
- prints the number of numbers in the file.
- Prints the sum
- Prints the max/min
- Prints the mean
- Procedures/Functions/Subroutines
- What is the basic format of a procedure/function/subroutine?
- What is a parameter?
- Pass by value?
- Pass by reference?
- What is a formal parameter list?
- What is an actual parameter list?
- What is a function prototype?
- What is a function definition?
- What are local variables to a function?
- What is the scope of a variable?
- What is a global variable?
- Why are functions good?
- Breaks the problem down into smaller parts for easier coding.
- Makes smaller sections of code for debugging.
- Lets you think at a higher level.
- Lets your reuse code.
- Decreases code size.
- Means you only debug the solution once.
- Makes it easier to modify/extend the code.
- Write a stick number to Arabic converter.
- Write a comma delimited number to Arabic converter.