#include "headerone.hpp"
#include "headertwo.hpp"
int main() {
menus::menu();
}
#pragma once
//no need to include headertwo.hpp here
class object {
public:
object() {
method();
}
void method() {
int x; /* do something */
}
~object();//this is a declaration
};
#pragma once
#include "headertwo.hpp"
namespace menus {
void menu(); //this is a declaration
}
#include "headertwo.hpp"
#include "headerone.hpp"
object::~object() {
menus::menu();
}
#include "headerone.hpp"
namespace menus
{
void menu() {
object instance;
}
}