Trouble with Vectors

Hi people. I have never worked with vectors before so I am wanting to know if the way I did this one is correct or not.
1
2
3
4
5
6
7
8
9
10
	cout << fixed << setprecision( 2 ); 
	vector < Employee * > employees( 4 );
	employees[ 0 ] = new Manager( 
   "Jack", "Jackson", "123", 800 );
  employees[ 1 ] = new EntryLevelEmployee( 
   "Adrian", "Kiefer", "234", 16.75, 40 );
  employees[ 2 ] = new SalesRep( 
   "Crystal", "Jones", "456", 10000, .06 );
  employees[ 3 ] = new SalesManager( 
   "Robert", "Robertson", "678", 5000, .04, 300 );

Thank you in advance for answering my post.
No problems guys, I got this one thanks.
Topic archived. No new replies allowed.