Skip to content

Instantly share code, notes, and snippets.

View DarTheStrange's full-sized avatar

DarTheStrange

View GitHub Profile
@DarTheStrange
DarTheStrange / tempy.cpp
Last active December 17, 2015 20:19
Templated array.
#include <iostream>
using namespace std;
template<class T>
class array {
int size;
T* g;
public:
array(int size = 8){
this->size = size;
@DarTheStrange
DarTheStrange / thingythingthing
Last active December 17, 2015 17:29
Brief thing that's probably all wrong. Guide me, wise one!
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector <int> vec;
for (int i = 10; i; --i) {
int x;
cin >> x;