Created
February 17, 2013 19:23
-
-
Save vermiculus/4972960 to your computer and use it in GitHub Desktop.
Basic OOC
This file contains 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
// heh |
This file contains 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
#include "Point.h" | |
struct LineModel { | |
Point *start; | |
Point *end; | |
} | |
void LineLength(struct LineModel*); | |
void MakeLine(struct LineModel*); | |
typedef Line struct LineModel*; |
This file contains 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
#include "Point.h" | |
void MakePoint(Point* obj, int x, int y) { | |
obj->x = x; | |
obj->y = y; | |
} |
This file contains 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
struct PointModel { | |
int x; | |
int y; | |
}; | |
void MakePoint(struct PointModel*, int, int); | |
typedef Point struct PointModel; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment