Just started learning Linked List and I am pretty lost. I have started a class but not sure it it is correct. Just need some feed back on if the class is setup right and any additional things about linked list. Every site I have looked at so far has pretty much did and said the same thing and its not helping any. I understand the concept it is just turning it into code.
also when trying to doCode:#include <iostream>
#include <string>
using namespace std;
#include "swcString.h" //Custom string class
class objList
{
public:
objList();
~objList();
objList operator+(objList);
private:
swcString objName;
swcString objMaterial;
int objWeight;
int objMass;
};
class objNode
{
public:
objNode();
objNode(objNode &);
~objNode();
void addNewObj();
void delObj();
bool emptyObj();
void traverseObj();
objList * searchObj();
private:
objList object;
objNode *start;
objNode *next;
objNode *previos;
objNode *end;
};
int main (void)
{
return 0;
}
i get this error:Code:objNode::objNode()
{
}
It is not reconizing my constructor in the class for some reasonCode:ompiling...
main.cpp
Linking...
main.obj : error LNK2001: unresolved external symbol "public: __thiscall objList::objList(void)" (??0objList@@QAE@XZ)
Debug/List.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
List.exe - 2 error(s), 0 warning(s