Skip to content

Instantly share code, notes, and snippets.

View petterroea's full-sized avatar

Liam Svanåsbakken Crouch petterroea

View GitHub Profile
@petterroea
petterroea / SimpleSet.h
Created April 17, 2018 20:35
simpleSet
#include <iostream>
template<class T>
class SimpleSet{
public:
/** Construct empty set **/
SimpleSet();
/** Destructor */
~SimpleSet();
/** Insert i into set, return true if the element was inserted, else false **/
@petterroea
petterroea / main.cpp
Created February 7, 2018 21:33
Oving 4
/*
* Oppgave 1a
* v0: 5
* increment: 2
* iterations: 10
* result: 25
*/
#include <iostream>
#include "tests.h"