Types and Streams
Types and Structs
Types make things better...and sometimes harder...but still better >:(
Recap
C++: Basic Syntax + the STL
Basic syntax
The STL
- Semicolons at EOL
- Primitive types (ints,
doubles etc)
- Basic grammar rules
- Tons of general
functionality
- Built in classes like maps,
sets, vectors
- Accessed through the
namespace std::
Standard C++: Basic Syntax + std library
The STL
Basic syntax
- TonsatofEOL
general functionality
- Semicolons
- Built
in(ints,
classes like maps, sets, vectors
- Primitive
types
- Accessed
through the namespace std::
doubles
etc)
Extremely
powerful and well-maintained
- Basic -grammar
rules
Namespaces
¡ñ MANY things are in the std:: namespace
¡ð e.g. std::cout, std::cin, std::lower_bound
¡ñ CS 106B always uses the using namespace std;
declaration, which automatically adds std:: for you
¡ñ We won¡¯t (most of the time)
¡ð it¡¯s not good style!
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- introduction to python computer science
- 2d arrays 2d arrays and double pointers bryn mawr
- types and streams
- 2 s complement and floating point
- operators and expressions
- section 2 1 variables int
- interfacing c c and python with swig
- data types in python
- lecture 2 types and structs
- topic 6 nested nested for loops university of texas at