Hey guys,
I had to make a basketball score board, and I've run into some errors. Here's my code so far:
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"
#include "strlib.h"
main()
{
int t, tw, tp, r, rw, rp, j, jw, jp, f, fw, fp;
printf("How many games did the Tigers play?");
t = GetInteger();
printf("How many games did the Tigers win?");
tw = GetInteger();
clrscr();
printf("How many games did the Rockets play?");
r = GetInteger();
printf("How many games did the Rockets win?");
rw = GetInteger();
clrscr();
printf("How many games did the Jumpers play?");
j = GetInteger();
printf("How many games did the Jumpers win?");
jw = GetInteger();
clrscr();
printf("How many games did the Flyers play?");
f = GetInteger();
printf("How many games did the Flyers win?");
fw = GetInteger();
clrscr();
tp = tw / t * 100;
rp = rw / r * 100;
jp = jw / j * 100;
fp = fw / f * 100;
printf(" Basketball Season /n");
printf("Name Games Played Games Won Percent Of Wins");
printf("Tigers %d %d %d ", t, tw, tp);
printf("Rockets %d %d %d ", r, rw, rp);
printf("Jumpers %d %d %d ", j, jw, jp);
printf("Flyers %d %d %d ", f, fw, fp);
getch();
}
And here are the errors I am getting:
Compiler: Default compiler
Executing gcc.exe...
gcc.exe "C:\Users\HyperCriticality\Desktop\basketball.c" -o "C:\Users\HyperCriticality\Desktop\basketball.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
C:\Users\HYPERC~1\AppData\Local\Temp/ccQDeaaa.o(.text+0x911):basketball.c: undefined reference to `clrscr'
C:\Users\HYPERC~1\AppData\Local\Temp/ccQDeaaa.o(.text+0x93e):basketball.c: undefined reference to `clrscr'
C:\Users\HYPERC~1\AppData\Local\Temp/ccQDeaaa.o(.text+0x96b):basketball.c: undefined reference to `clrscr'
C:\Users\HYPERC~1\AppData\Local\Temp/ccQDeaaa.o(.text+0x998):basketball.c: undefined reference to `clrscr'
collect2: ld returned 1 exit status
Execution terminated
Could I have a hand with this? I really need this done...