C ++ error that states can not convert x* to new y with create link list
call. Ive done this with the same format and it worked
" So whats going on is this is for a class of mine learning data
structures and ive called to create a new foo like this before but this
time it does not like return new linkedlist();"
" in file Factory.cpp" ' #include "list.h" using namespace std;
LinkedListInterface * Factory::getLinkedList
{
return new linkedlist();
}
"in Factory.h"
#pragma once
#include "LinkedListInterface.h"
using namespace std;
class Factory
{
public:
static LinkedListInterface * getLinked();
};
'
"( file list.h)
I have a basic constructor in this and the class is called linkedlist"
No comments:
Post a Comment