It crashes at this insert function.
bool linkedList::Insert(int i, int a)
{
if ((i > (length+1)) || (i < 1))
return false;
Node *newn, *current;
newn = new Node;
newn->value = a;
Type: Posts; User: TrippyJing
It crashes at this insert function.
bool linkedList::Insert(int i, int a)
{
if ((i > (length+1)) || (i < 1))
return false;
Node *newn, *current;
newn = new Node;
newn->value = a;
I'm trying to get this linked list project to work, but when I try to run it I get this error:
Lab6 being my project.
------------------node.h------------------
struct Node
Alright, I included it at the bottom of the header, and that seems to have done the trick...after I removed array.cpp from my source files. Thanks.
If only I could. My professor requires us to have two source files and one header. One source with the main program, one source with the implementation file, and then the header.
If I move...
I am currently taking a data structures class and I've run into a snag regarding one of the projects. It's a big one, as every other project after it requires it.
Class templates.
I get the...