Your cart is currently empty!
Begin this lab by copying the main.cc from my directory to your own lab6 directory. cp ~jdolan/cs2401/labs/lab7/main.cc . Remember that the dot at the end is part of the command. In this main you will see that I have created a linked list of random numbers. The numbers are 1 to 500, but there…
Begin this lab by copying the main.cc from my directory to your own lab6 directory.
cp ~jdolan/cs2401/labs/lab7/main.cc .
Remember that the dot at the end is part of the command.
In this main you will see that I have created a linked list of random numbers. The numbers are 1 to 500, but there are 2000 of them in the list, so obviously there will be duplicates. You can also see that I am timing the code with time. (Although both of my functions are taking less than a second apiece.) Read through the code so that you see what it does.
For this lab you are to implement two functions, and I have given you the prototypes for the functions.
You should then run a script file by type script output, running the program, and then
ctrl-d. There should be four lists output, as well as reporting on the size of the lists, and the time it has taken each of your functions to run.
Submit your source code and the script file to your lab instructor, according to his instructions.