This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Author: phlandscape | |
* relearning Merge Sort by implementing | |
* templated version for STL containers with iterators | |
* | |
*/ | |
#include <iostream> | |
#include <list> | |
// template functions | |
template<typename container, typename ITERATOR_TYPE> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using std::cout; using std::endl; | |
using std::copy; | |
template <typename T> | |
void Swap_Elements(T &a, T &b){ | |
T temp(a); a = b; b = temp; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Euro.h" | |
//constructor | |
Currency::Currency(string name): | |
value(0), | |
Inter_Name(name) | |
{ | |
} | |
Currency::Currency(string name,double x): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:::::::::::::::::::/ | |
:::::::::::::::::::/+ | |
:::::::::::::::::::/++ | |
####################+++ | |
####################+++ | |
####################+++ | |
####################+++ | |
####################+++ | |
####################+++ | |
####################+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "AnalyzeMatrix.h" | |
#include <iostream> | |
using namespace std; | |
AnalyzeMatrix::AnalyzeMatrix(fstream &fileInc) | |
{ | |
if(fileInc.is_open()){ | |
if(fileInc.good()){ | |
vector <int> cols; | |
string edge; | |
while(getline(fileInc,edge)){ |