Skip to content

Instantly share code, notes, and snippets.

View delp's full-sized avatar

Alex R. Delp delp

  • Seattle, WA
View GitHub Profile
@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;