Type: Posts; User: Salem
One more thing, use the code tags ONLY for code, not your entire post.
What is your declaration of vector?