adding cs235

This commit is contained in:
dm
2016-04-06 20:46:10 -07:00
parent 8e52ce1982
commit cf99ec6565
178 changed files with 13079 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#include <iostream>
#include <cassert>
#include "linkedlist.h"
#include "node.h"
using namespace std;
int main() {
node* head = new node(0, head);
node* tom = new node(1, NULL);
node* dick = new node(2, NULL);
head->next = tom;
tom->next = dick;
node* node_ptr = head;
while(node_ptr != NULL) {
cout << node_ptr->value;
if(node_ptr != NULL) {
cout << "====>";
}
node_ptr = node_ptr->next;
}
cout << endl;
cout << dick->next << endl;
}