Home
C++
Bitset
Class
Console
Data Structure
Data Type
Deque
Development
File
Function
Generic
Language
List
Map Multimap
Overload
Pointer
Qt
Queue Stack
Set Multiset
STL Algorithms Binary search
STL Algorithms Heap
STL Algorithms Helper
STL Algorithms Iterator
STL Algorithms Merge
STL Algorithms Min Max
STL Algorithms Modifying sequence operations
STL Algorithms Non modifying sequence operations
STL Algorithms Sorting
STL Basics
String
Valarray
Vector
vector subscript indexer « Vector « C++
C++
Vector
vector subscript indexer
1.
Use indexer to add elements to a vector
2.
Use indexer to reference elements in a vector
3.
Loop thourgh all elements in a vector using <
4.
Loop through all elements in a vector using operator [] instead of operator *
5.
Create another vector that contains a subrange of vector.
6.
Raise all values in a vector by a given percentage
7.
Read double from keyboard, save it to a vector and find the max value