summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkiz <skiznet@aol.com>2024-09-17 23:44:48 -0400
committerSkiz <skiznet@aol.com>2024-09-17 23:44:48 -0400
commit7ba6b80a7ecf58deb2506ca8349293a6d72f48e0 (patch)
tree4f4fe026cadfbb6fee1ff9b3a3948882adb82b00
parent93799cb80df74bce1c1704cd80361d1ce11254e0 (diff)
Changed config to .H fileHEADmaster
-rw-r--r--src/config.h (renamed from src/config.c)4
-rw-r--r--src/main.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/config.c b/src/config.h
index ee0b3f4..c828df9 100644
--- a/src/config.c
+++ b/src/config.h
@@ -1,5 +1,5 @@
// The config file for the TaxC program.
-// Change the var to your state's tax percentage.
+// Change the "#define" to your state's tax percentage.
// Example for the state of Pennsylvania: 0.06
-float percent = 0.06;
+#define percent 0.06
diff --git a/src/main.c b/src/main.c
index 2a2317d..26a9bbb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
-#include "config.c"
+#include "config.h"
// Definitions:
#define lessthan <
#define print printf