diff -r e1a05c29b2c476d9effe59f7832167d6a5aaf18d -r 17a967c7a5e4b6c393ca025b5f0b416e070dc9f4 cpp/algorithms/algorithms.vcxproj
--- a/cpp/algorithms/algorithms.vcxproj Sat Feb 16 18:34:29 2013 -0600
+++ b/cpp/algorithms/algorithms.vcxproj Sat Feb 16 18:44:42 2013 -0600
@@ -16,6 +16,7 @@
+
diff -r e1a05c29b2c476d9effe59f7832167d6a5aaf18d -r 17a967c7a5e4b6c393ca025b5f0b416e070dc9f4 cpp/algorithms/algorithms.vcxproj.filters
--- a/cpp/algorithms/algorithms.vcxproj.filters Sat Feb 16 18:34:29 2013 -0600
+++ b/cpp/algorithms/algorithms.vcxproj.filters Sat Feb 16 18:44:42 2013 -0600
@@ -35,5 +35,8 @@
Header Files
+
+ Header Files
+
\ No newline at end of file
diff -r e1a05c29b2c476d9effe59f7832167d6a5aaf18d -r 17a967c7a5e4b6c393ca025b5f0b416e070dc9f4 cpp/algorithms/src/InsertSort.h
--- a/cpp/algorithms/src/InsertSort.h Sat Feb 16 18:34:29 2013 -0600
+++ b/cpp/algorithms/src/InsertSort.h Sat Feb 16 18:44:42 2013 -0600
@@ -2,9 +2,10 @@
#define INSERTSORT_H
#include "SortAlgorithm.h"
+#include "Algorithm.h"
template
-class InsertSort : public SortAlgorithm, public Algorithm
+class InsertSort : public SortAlgorithm
{
public:
virtual void Sort()
diff -r e1a05c29b2c476d9effe59f7832167d6a5aaf18d -r 17a967c7a5e4b6c393ca025b5f0b416e070dc9f4 cpp/algorithms/src/MedianSort.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cpp/algorithms/src/MedianSort.h Sat Feb 16 18:44:42 2013 -0600
@@ -0,0 +1,24 @@
+#ifndef MEDIAN_SORT_H
+#define MEDIAN_SORT_H
+
+#include "SortAlgorithm.h"
+#include
+
+template
+class InsertSort : public SortAlgorithm
+{
+public:
+ virtual void Sort()
+ {
+ this->mediansort(this->_container);
+ }
+
+ void mediansort(std::vector arr)
+ {
+ if (arr.size() == 0)
+ return;
+
+ }
+}
+
+#endif
\ No newline at end of file
diff -r e1a05c29b2c476d9effe59f7832167d6a5aaf18d -r 17a967c7a5e4b6c393ca025b5f0b416e070dc9f4 cpp/algorithms/src/SortAlgorithm.h
--- a/cpp/algorithms/src/SortAlgorithm.h Sat Feb 16 18:34:29 2013 -0600
+++ b/cpp/algorithms/src/SortAlgorithm.h Sat Feb 16 18:44:42 2013 -0600
@@ -3,8 +3,8 @@
#include "Algorithm.h"
-
-class SortAlgorithm
+template
+class SortAlgorithm : public Algorithm
{
public:
virtual void Sort() = 0;
diff -r e1a05c29b2c476d9effe59f7832167d6a5aaf18d -r 17a967c7a5e4b6c393ca025b5f0b416e070dc9f4 cpp/algorithms/src/main.cpp
--- a/cpp/algorithms/src/main.cpp Sat Feb 16 18:34:29 2013 -0600
+++ b/cpp/algorithms/src/main.cpp Sat Feb 16 18:44:42 2013 -0600
@@ -13,7 +13,7 @@
//sort1.initContainer(create_vector("test")("test2"));
//cout << sort1.ToString();
//vector arr1 = create_vector(
- sort1.initContainer(create_vector(3)(2)(3));
+ sort1.initContainer(create_vector(3)(2)(3)(1));
sort1.Sort();
cout << sort1.ToString() << endl;
}
\ No newline at end of file