Skip to content

Instantly share code, notes, and snippets.

View joshpeterson's full-sized avatar

Joshua Peterson joshpeterson

View GitHub Profile
@joshpeterson
joshpeterson / ListReverse.cpp
Created July 25, 2010 15:48
Reverse a list of string in C++
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
// Reverse the elements in a vector.
template <typename T>
std::vector<T> Reverse(std::vector<T> input)
{
std::vector<T> output;
using System;
using System.Collections.Generic;
using System.Linq;
namespace ListReverse
{
/// <summary>
/// Demonstrate two methods which reverse the elements in a list.
/// </summary>
class Program