Quote Originally Posted by Paul McKenzie View Post
You could have saved yourself all of this trouble and just use std::list.
Code:
#include <list>
http://www.cplusplus.com/reference/stl/list/

Regards,

Paul McKenzie
this is very true! But being a beginner I am trying to fully understand the basics and learn from problems like this. Any suggestions or is more code needed? I feel like I am missing some rule here.