td611
New Coder
I declare a vector of object Persons
When I do so, I get this error, underlining mList.
"incomplete type is not allowed"
What does this mean, and how do I resolve it?
C++:
#ifndef PostO_H
#define PostO_H
#include "Person.h"
#include "Address.h"
#include <iostream>
#include <string>
using namespace std;
class PostO
{
private:
vector <Person> mList[];
When I do so, I get this error, underlining mList.
"incomplete type is not allowed"
What does this mean, and how do I resolve it?
Last edited by a moderator: