Skip to content

Instantly share code, notes, and snippets.

@domiyanyue
Last active April 28, 2020 03:08
Show Gist options
  • Save domiyanyue/5042b43728a0153777cc9ea5ba791847 to your computer and use it in GitHub Desktop.
Save domiyanyue/5042b43728a0153777cc9ea5ba791847 to your computer and use it in GitHub Desktop.
fixed with header guard main
...
#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