chsalvia
asked on
Include file conflict
When working with various header files, how can you prevent having to worry about which includes which, so you don't accidentally include something twice?
Is there some preprocessor command you can form?
Is there some preprocessor command you can form?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It should have been
#include "header.h"
#include "header.h"
// header.h
#pragma once
// Your code comes here