<<< Vector operations, cont. | Index | Demo: a vector of words >>> |
You can write many new programs by combining
language features, built-in types, and user-defined types in new and interesting ways.
So far, we have
Variables and literals of types bool, char, int, double
vector, push_back(), [ ] (subscripting)
operators !=, ==, =, +, -, +=, <, &&, ||, !
functions max( ), sort( ), cin>>, cout<<
flow control statements if, for, while
You can write a lot of different programs with these language features!
<<< Vector operations, cont. | Index | Demo: a vector of words >>> |