This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Next revision Both sides next revision | ||
|
cpp:vector_overloading [2021/05/24 07:30] gthanos |
cpp:vector_overloading [2021/05/24 07:33] gthanos |
||
|---|---|---|---|
| Line 104: | Line 104: | ||
| Vector v(5); | Vector v(5); | ||
| v.valueAt(0) = 2; v.valueAt(1) = 3; | v.valueAt(0) = 2; v.valueAt(1) = 3; | ||
| - | v.valueAt(2) = 4; v.valueAt(3) = 5; v.valueAt(4) = 6; | + | v.valueAt(2) = 4; v.valueAt(3) = 5; v.valueAt(4) = 6; |
| + | v.print(); | ||
| } | } | ||
| </ | </ | ||