Skip to content

Instantly share code, notes, and snippets.

View migimunz's full-sized avatar

Nemanja Stojanovic migimunz

View GitHub Profile
@migimunz
migimunz / vector2D.cpp
Created May 12, 2011 19:56
A vector2D class with overloaded operators to make it easy to work with. All methods (except assignment operator, obviously) are const.
#ifndef VECTORND_H
#define VECTORND_H
namespace vector
{
template <typename T>
struct vector2D
{
T x, y;
@migimunz
migimunz / brainfuck.cpp
Created May 10, 2011 11:56
A simple brainfuck interpreter in C++
#include <stdio.h>
#include <vector>
#include <iterator>
#include <sstream>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <ctype.h>
//typedefs