1// vector::front
2#include <iostream>
3#include <vector>
4
5int main () {
6
7 std::vector<int> myvector;
8 myvector.push_back(78);
9 myvector.push_back(16);
10 // now front equals 78, and back 16
11
12 int first = myvector.front(); //first = 78
13 std::cout << "the first value in vector is " << first << std::endl;
14 return 0;
15}