Assignment
you can also assign to an entire vector or matrix:
intVector A(10), B(10), C(5);
A = 3; // set all 10 elements of A to the value 3
B = A; // copy A to B
C = B; // not allowed: C and B have different lengths.
A += B; // yes, these work too!
next...
prev...
begin lecture again...