Код: Выделить всё
.hВот мой полный код:
[code]instructor.h[/code]
Код: Выделить всё
#include "person.h"
#ifndef instructor_h
#define instructor_h
class instructor: public person {
private:
int children;
int salary;
string maritalStatus;
public:
instructor();
instructor(string, string, string, int , int ,string);
instructor operator++();
void print();
int calcSalary();
int getSalary();
int getNumOfChildren();
string getMarialStatus();
friend ostream &operator
Подробнее здесь: [url]https://stackoverflow.com/questions/35904143/friend-not-allowed-outside-of-a-class-definition[/url]