update struct syntax and comment fix
This commit is contained in:
11
physics.c
11
physics.c
@@ -8,12 +8,9 @@
|
|||||||
#define FRAMERATE 10
|
#define FRAMERATE 10
|
||||||
|
|
||||||
typedef struct Point{
|
typedef struct Point{
|
||||||
double x;
|
double x, y;
|
||||||
double y;
|
px, py;
|
||||||
double px;
|
fx, fy;
|
||||||
double py;
|
|
||||||
double fx;
|
|
||||||
double fy;
|
|
||||||
} Point;
|
} Point;
|
||||||
|
|
||||||
typedef struct Link {
|
typedef struct Link {
|
||||||
@@ -29,7 +26,7 @@ void update_point(Point* p);
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* main
|
* Main
|
||||||
*/
|
*/
|
||||||
int main(){
|
int main(){
|
||||||
char *data = malloc(40*40);
|
char *data = malloc(40*40);
|
||||||
|
|||||||
Reference in New Issue
Block a user