#!/bin/sh

CC="CC -mips3 -n32"

if [ -f vector.C ]
then
	echo delete vector.C first
	exit 1
fi

cat > vector.C << eof
#include <vector.h>

int main()
{
	        vector<int> a;
}
eof

echo "#### Using traditional syntax"
cat vector.C

set -x

$CC -o vector vector.C

set +x

cat > vector.C << eof
#include <vector>

int main()
{
	        std::vector<int> a;
}
eof

echo "#### Using ANSI syntax"
cat vector.C

set -x

$CC -o vector vector.C

set +x


cat > vector.C << eof
#include <vector>

int main()
{
	        using namespace std;

			        vector<int> a;
}
eof

echo "#### Using namespaces syntax"
cat vector.C

set -x

$CC -o vector vector.C

set +x

rm vector.C

