Skip to content

Instantly share code, notes, and snippets.

View delp's full-sized avatar

Alex R. Delp delp

  • Seattle, WA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am delp on github.
  • I am datenblut (https://keybase.io/datenblut) on keybase.
  • I have a public key ASDLjecUdw-n6s1EskczJPDzaycJfvnpDEg6Axd2lkwuTAo

To claim this, I am signing this object:

@delp
delp / linkedlist.cpp
Last active January 4, 2016 02:09 — forked from stringham/linkedlist.cpp
Just trying to get some practice at using Git, reading and fixing other people's code, and refreshing myself at Data Structures. Fixed the segfault and a few errors including: -assignment in conditional -new node placed in head instead of in the iterators spot. Added a display function to give a visual representation of the list. I always like h…
#include <iostream>
#include <cstddef>
//singly linked list of integers
using namespace std;
struct node {
int data;
node *next;