From 87c0cb8d018a3bce206892dd7f199d918eba5e79 Mon Sep 17 00:00:00 2001 From: Ole Morud Date: Tue, 7 Jun 2022 15:49:22 +0200 Subject: [PATCH] update struct syntax and comment fix --- physics.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/physics.c b/physics.c index bc2eff3..541bdf4 100644 --- a/physics.c +++ b/physics.c @@ -8,12 +8,9 @@ #define FRAMERATE 10 typedef struct Point{ - double x; - double y; - double px; - double py; - double fx; - double fy; + double x, y; + px, py; + fx, fy; } Point; typedef struct Link { @@ -29,7 +26,7 @@ void update_point(Point* p); /* - * main + * Main */ int main(){ char *data = malloc(40*40);