User Tools

Site Tools


cpp:vector_overloading

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cpp:vector_overloading [2021/05/24 07:30] gthanoscpp:vector_overloading [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
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
 +  cout << "value 5 at position: " << v.find(5) << endl; 
 +  cout << "value 10 at position: " << v.find(10) << endl; 
 +  v.print();
 } }
 </code> </code>
cpp/vector_overloading.1621841455.txt.gz · Last modified: 2021/05/24 06:30 (external edit)