Skip to content

Instantly share code, notes, and snippets.

@yun-cloud
yun-cloud / hw7-2
Created April 25, 2017 11:46 — forked from anonymous/hw7-2
#include "function.h"
using namespace std;
Polynomial::Polynomial()
{
greatestPower=0;
coefficients[0]=0;
}
Polynomial::Polynomial(const int N, const int C[51])
{
@yun-cloud
yun-cloud / main.cpp
Created November 19, 2016 10:05 — forked from brotchie/main.cpp
Minimal C++ implementation of Functor, Monad and Maybe using c++0x variadic templates and lambda expressions.
/*
* Minimal C++ implementation of Functor, Monad and Maybe.
*
* Requires c++0x variadic templates and lambda expressions:
*
* g++ -std=c++0x main.cpp -o main
*
* fmap, monadic bind and return implementations for std::vector
* and Maybe.
*