chore: Add course material
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#ifndef COUNTVISITOR_H
|
||||
#define COUNTVISITOR_H
|
||||
|
||||
#include "EntryVisitor.h"
|
||||
class CountVisitor : public EntryVisitor {
|
||||
int nPerson, nCompany, nGroup;
|
||||
|
||||
public:
|
||||
CountVisitor();
|
||||
|
||||
void printCounts();
|
||||
|
||||
void visit(const PersonEntry &);
|
||||
void visit(const CompanyEntry &);
|
||||
void visit(const GroupEntry &);
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user