Skip to content

Instantly share code, notes, and snippets.

View jason-s13r's full-sized avatar

Jason Schwarzenberger jason-s13r

View GitHub Profile
@jason-s13r
jason-s13r / linked_list.cpp
Created November 1, 2011 06:31
Practising C++ by implementing doubly Linked List clases for the list and the nodes.
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
/* List Node: */
template <class T>
class MyNode {
@jason-s13r
jason-s13r / practice_list.c
Created October 28, 2011 02:56
Practising C by implementing a simple doubly linked list.
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
struct list_node {
char* name;
int age;
struct list_node* previous;
struct list_node* next;
};