aboutsummaryrefslogtreecommitdiff
path: root/src/cctest/vector/vector-std--using-namespace-std.cc
blob: df8b7f2dc12b408c8f45b2b0e73fcbb56f453442 (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 namespace std;

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 namespace std; vector is ok\n");
return 0;
}