aboutsummaryrefslogtreecommitdiff
path: root/src/cctest/vector/vector-std--using-std-vector.cc
blob: 20870e0f5a92be2be15e0e2ddd5340c7811211a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// $Header$

#include <stdio.h>
#include <vector>
using std::vector;

int main()
{
printf("testing <vector> functions in std:: namespace:\n");
vector<int> v(3);
v[0] = 42;
v[1] = 69;
v[2] = 105;
printf("%d %d %d should be 42 69 105... ", v[0], v[1], v[2]);
printf(((v[0] == 42) && (v[1] == 69) && (v[2] == 105)) ? "ok\n" : "FAIL\n");
printf("==> #include <vector>; using std::vector; vector is ok\n");
return 0;
}