Synopsis:
This lecture provides some help with Project #1, then surveys the C++ Language.
Readings amd Activities for this Session:
CPPPL: chapters 1 - 5, review
Project #1 - review statement Look through these presentations for synchronous discussion:
You many wish to print out a copy of this presentation:
Project #1 - review statement Look through these presentations for synchronous discussion:
You many wish to print out a copy of this presentation:
Glossary of Terms
-
Scope:
Any set of code statements enclosed in braces "{" and "}". Scopes come in two forms:
Function scopes and all the control scopes they contain are executable scopes.
Namespace, class, struct, and enum scopes are declaration scopes. -
Stack Frame:
Memory temporarily allocated from the program's stack to an executable scope.
Allocation occurs when the program's thread of execution enters that scope.
The stack frame holds a function's parameters and return value and any local data declared in that scope.
This allocation becomes invalid when the thread of execution leaves it's scope.
Lecture Content:
-
Problem with Dependencies,
pptx
Motivation for a lot of what we do in this course. -
Project #1:
Project #1
Project #1 Helpers
Dissecting the Project #1 statement - What is hard? What is easy? Suggestions. Design Concept #3: Application-side vs. Solution-side
Design Concept #5: Top-Down Design
Design Concept #6: Bottom-Up Design
Design Note #2: Package Structure
-
Survey of C++ Language
- Programming Languages
- Getting Started
- C vs. C++, C++ Classes, Templates, C++11
-
Why C++? Why not C#?,
pptx
C++, an assessment, pptx - Survey of Language features, pptx
- Compilation, Computation, and Memory models, ppt
- C++ Keywords
- C++ operators
-
C++ Survival Guide,
doc
A quick tour of syntax for pointers, references, classes, strings, streams, and vectors. - classes and class relationships - high level view, doc
-
Class and Object relationships,
vsdx
Implemented in code - C++11 changes and additions
- Herb Sutter on C++11
- CppReference.com
- Project Helper code in Repository
-
Helper code: GettingStarted
Shows how to implement application tasks and test them. -
first look at STL notes,
pptx
The Standard Template Library (STL) provides a set of useful containers, iterators, and algorithms. You can use the containers without knowing too much about how templates work. We will get to that soon. -
basic STL code demos
Shows how easy it is to use vectors, lists, sets, and maps. - Visual Studio IDE:
- Review Syllabus, Review Getting Started with First Project
-
Lecture Take-away:
Compilation, Computation, and Memory models, ppt C++ Survival Guide, doc
A quick tour of syntax for pointers, references, classes, strings, streams, and vectors. classes and class relationships - high level view, docx
class layout, pptx