Computer Science Question.

Jul 2013
4
0
This is the question on my homework.

1) An include guard, typically in the form of:
Code:
#ifndef _SomeClass_Included_ 
#define _SomeClass_Included_ 
// Class declaration here 
#endif
Is used to prevent a header file from being included twice in the same implementation file. What happens if a header file declaring a class gets included twice without an include guard in place?

So if it did not ignore the class being defined, would it essentially just re-copy the data of that class into the first class defined - causing an error? Would that be a sufficient answer? :ugeek: