<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://programmingexamples.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://programmingexamples.net/w/index.php?action=history&amp;feed=atom&amp;title=CPP%2FSTL%2FVector%2FReverse</id>
		<title>CPP/STL/Vector/Reverse - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://programmingexamples.net/w/index.php?action=history&amp;feed=atom&amp;title=CPP%2FSTL%2FVector%2FReverse"/>
		<link rel="alternate" type="text/html" href="http://programmingexamples.net/w/index.php?title=CPP/STL/Vector/Reverse&amp;action=history"/>
		<updated>2026-06-13T05:34:17Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>http://programmingexamples.net/w/index.php?title=CPP/STL/Vector/Reverse&amp;diff=4520&amp;oldid=prev</id>
		<title>Daviddoria: Created page with '==Reverse.cpp== &lt;source lang=&quot;cpp&quot;&gt; #include &lt;iostream&gt; #include &lt;vector&gt;  #include &lt;algorithm&gt;  int main(int, char*[]) {   std::vector&lt;unsigned int&gt; numbers;   numbers.push_back…'</title>
		<link rel="alternate" type="text/html" href="http://programmingexamples.net/w/index.php?title=CPP/STL/Vector/Reverse&amp;diff=4520&amp;oldid=prev"/>
				<updated>2011-06-08T23:55:39Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;==Reverse.cpp== &amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt; #include &amp;lt;iostream&amp;gt; #include &amp;lt;vector&amp;gt;  #include &amp;lt;algorithm&amp;gt;  int main(int, char*[]) {   std::vector&amp;lt;unsigned int&amp;gt; numbers;   numbers.push_back…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Reverse.cpp==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;vector&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;algorithm&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int main(int, char*[])&lt;br /&gt;
{&lt;br /&gt;
  std::vector&amp;lt;unsigned int&amp;gt; numbers;&lt;br /&gt;
  numbers.push_back(1);&lt;br /&gt;
  numbers.push_back(2);&lt;br /&gt;
  numbers.push_back(3);&lt;br /&gt;
  numbers.push_back(4);&lt;br /&gt;
&lt;br /&gt;
  // Reverse the elements in the vector&lt;br /&gt;
  std::reverse (numbers.begin( ), numbers.end( ) );&lt;br /&gt;
&lt;br /&gt;
  for(unsigned int i = 0; i &amp;lt; numbers.size(); ++i)&lt;br /&gt;
  {&lt;br /&gt;
    std::cout &amp;lt;&amp;lt; numbers[i] &amp;lt;&amp;lt; std::endl;&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CMakeLists.txt==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cmake&amp;quot;&amp;gt;&lt;br /&gt;
cmake_minimum_required(VERSION 2.6)&lt;br /&gt;
&lt;br /&gt;
Project(Reverse)&lt;br /&gt;
&lt;br /&gt;
ADD_EXECUTABLE(Reverse Reverse.cpp)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Daviddoria</name></author>	</entry>

	</feed>