For competitor 1 enter 4 scores: 1 1 1 1
Result for competitor 1 is 1.00
Another score? (1=yes, 0=no) 1
For competitor 2 enter 4 scores: 1 2 3 4
Result for competitor 2 is 3.00
Another score? (1=yes, 0=no) 1
For competitor 3 enter 4 scores: 10 10 10 10
Result for competitor 3 is 10.00 Golden raspberry!
Another score? (1=yes, 0=no) 0
main.c
here is a
Makefile
that you can use to try to compile the project:
CC = gcc
.c.o:
$(CC) -c -o $@ $<
all: main
main: main.o
$(CC) -o $@ $@.o
main.o: main.c
clean:
rm -f *.o
rm -rf main
Note that each line underneath the targets is indented by a tab, not just
spaces, this is important!
tar.gz
archive of your asg##/ directory, including:
README
file containing
Makefile
.h
headers and .c
source)
make clean
before tar
)
handin
notes