Note that we have to capitalize Read and Write to avoid confusion with the system calls read and write.
Use the following commands to compile this program (you might want to write a shell script or a Makefile):
% gcc -c dice.c % gcc -c main.c % gcc -o main main.o Dice.o
Note that in C++, we do not have to worry about name conflicts anymore, as we now use member functions.
Remember to use g++ to compile...