I am getting both errors on the same line. Bridge *first in the Lan class. What am i missing?
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
class Lan{
Bridge *first;
Bridge *second;
Host hostList[10];
int id;
};
class Bridge{
Lan lanList[5];
};
class Host{
Lan * lan;
int id;
public:
Host(int newId)
{
id=newId;
}
};
void main(){
return;
}