How do I post a question

I am having problem in swapping the contents of vector(making current element as the first one).

where and how can I post this question.

Thanks
In General or Beginners section.
BTW, STL gives you the right function: http://www.cplusplus.com/reference/algorithm/swap/
Thank you Bazzy!

Actually I had to insert an element at the end of vector. Then I had to make it the first element and move all elements one by one (making first one the second , second as third and so on).
Last edited on
If you use a deque instead of a vector, you can insert elements at the beginning of it: http://www.cplusplus.com/reference/stl/deque/push_front/
Topic archived. No new replies allowed.