out: Wednesday, January 13, 2021
due: Wednesday, January 20, 2021 by 10:00 am,
Do a git pull
and find directory ex03/
.
We're supplying a mostly completed .h file (Vector3d.h
) that declares some functions
and a main()
(in file ex03.c
) that uses them and verifies their functionality.
The .h file is incomplete in a key way, and we don't supply any code implementing the methods it declares.
Those things are your job.
You should
Vector3d.h
by deciding on a type for Vector3d
in the
typedef
statement near the top. Note: make sure you understand how main()
is expecting the type to behave before filling in the typedef
. This step is, in
a way, the hardest part.
vector3d.h
according to the specifications it
contains and the uses of those methods in ex03.c
.valgrind
to check. (We will.)
Your code must:
gcc -std=c17 -g -Wall *.c
ex03.c
at all
vector3d.h
We have supplied a solution executable you can use to see expected output.
You should tag your code ex03-final
and push to your repository.