C++ vector example

/*

A simple C++ program demonstrating vector manipulation.

Uses the Vector2 class. Comments deliberately suppressed.

*/

// Some common definitions and declarations

#include <stream.h>
#include "Vector2.h"

int main( int argc, char **argv )
{

   Vector2 c1 = Vector2(0.5,-1.5);
   Vector2 c2 = Vector2(-3.0,2.5);

   Vector2 c3 = c1 + c2;

   cout << c1 << " + " << c2 << " = " << c3 << endl;

   Vector2 c4 = c1 + "OUCH!!!";

   return 0;

}

Output (after fixing bug):

(0.5,-1.5) + (-3,2.5) = (-2.5,1)