Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nnorm's full-sized avatar

nnorm nnorm

View GitHub Profile
### Keybase proof
I hereby claim:
* I am nnorm on github.
* I am nnorm (https://keybase.io/nnorm) on keybase.
* I have a public key ASDxx_HbQ89W1oecCQe4mKpapv_kXhKUSPcyO9HjBQBLjwo
To claim this, I am signing this object:
@nnorm
nnorm / pioche.cpp
Created February 26, 2017 19:30
Dynamic generic container, working as a pile (add at the bottom, remove at the top).
#include "pioche.hpp"
#include <string.h>
#include <iostream>
//#define NDEBUG //uncomment before compiling so the assert macros are disabled for release version
#include <cassert>
void pioche_init(Pioche& pioche, int taille_elt) {
pioche.elementSize_ = taille_elt;
pioche.capacity_ = 1;
@nnorm
nnorm / pioche.cpp
Created February 26, 2017 19:30
Dynamic generic container, working as a pile (add at the bottom, remove at the top).
#include "pioche.hpp"
#include <string.h>
#include <iostream>
//#define NDEBUG //uncomment before compiling so the assert macros are disabled for release version
#include <cassert>
void pioche_init(Pioche& pioche, int taille_elt) {
pioche.elementSize_ = taille_elt;
pioche.capacity_ = 1;