We will use the EECS-hosted Gitlab instance to host your Git repositories in this class. We also provide a list of steps you can follow each time you need to make a repository for a lab. The only thing you need to do to submit a lab on time is to have it in the corresponding Git repository by 11:59 PM on the due date.
.o
files, executables, or other non-essential files in your repository.
If you don't know if a file should be submitted, ask a TA.
You must also submit a makefile with every lab!
It must have a clean function (i.e., typing make clean
should result in the removal of any .o
files or executables.
Please see this Makefile tutorial
and Dr. Plank's lecture notes on makefiles.
If you need further help writing a makefile, ask a TA.
All grade appeals must be initiated within ONE WEEK after receiving your lab grade. It is not necessary that the grade appeal be taken care of within that week, but you must have at least contacted your TA and expressed your desire to appeal your grade.
Grading on labs will slightly vary depending on if we test for memory leaks or not in that lab:
i
, j
, and k
are ok for iterators, but generally try to avoid 1-letter variable names outside of that.
For a general rule: If you get someone else to read your code and they have to figure out or ask what information a variable is representing, you should give it a better name.
/**
* @name add_numbers.
* @brief Adds two numbers, stores the result in a pointer, and then returns the result as a double.
* @param[in] x The first number to add.
* @param[in] y The second number to add.
* @param[out] z Pointer with result stored.
* @return The result of the addition cast to a double.
*/
double add_numbers(int x, int y, int* z) {
*z = x + y;
return x + y;
}
main
function.
Doing so will make your code harder to read and debug when you run into a problem.
stderr
and have your program exit gracefully.
You should have recieved an invitation to Ed our discussion platform. Click here to go to the page.