Last active
April 28, 2020 03:08
-
-
Save domiyanyue/5042b43728a0153777cc9ea5ba791847 to your computer and use it in GitHub Desktop.
fixed with header guard main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
#ifndef TIME_H | |
#define TIME_H | |
// replaced from first #include "time.h" | |
struct Time { | |
int hour; | |
int minute; | |
}; | |
... | |
#endif | |
... | |
// replaced from #include "util.h" which also include "time.h" | |
#ifndef TIME_H | |
#define TIME_H | |
struct Time { | |
int hour; | |
int minute; | |
}; | |
... | |
#endif | |
... | |
int main(){ | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment