This is an old revision of the document!
mmf0verify uses stdin to write the year
fscanf (stdin, “%hu\n”, &year);
Day | Value |
---|---|
Monday | 1 |
Day | Value |
Tuesday | 2 |
Day | Value |
Wednesday | 3 |
Day | Value |
Thursday | 4 |
Day | Value |
Friday | 5 |
Day | Value |
Saturday | 6 |
Day | Value |
Sunday | 7 |
Day | Value |
Sunday | 0 |
Operator | Description |
---|---|
== | is equal to |
!= | is not equal to |
< | greater than |
> | less than |
<= | less than or equal to |
>= | greater than or equal to |
To verify your results, ./mmf0verify
Remember to only use stdout to print the days of the week [EX: fprintf(stdout, “Monday\n”)]. If stdout is used for anything other than the days of the week, the mmf0verify will say you have a mismatch for every year, even if you get the correct day when you run your compiled code. If you want to print something other than the days of the week, use stderr.