ANONYMOUS wrote:
> G'day all,
>
> Just a query regarding submission of our final runml.c code into cssubmit.
>
> There is a liner under the Project 1 page, "Submission requirements", point number 2:
>
> 'Submit only a single C11 source-code file named runml.c
> Do not submit any header-files, documentation, instructions, ...'
>
> May I interpret it as my final runml.c should omit any c header files and would look like the following:
This is not what Chris means. He means to not *submit* header files (e.g. you can't submit a header file you wrote). You still have to *import* header files or compilation will fail.
> // CITS2002 Project 1 2024
> // Student1: STUDENT-NUMBER1 NAME-1
> // Student2: STUDENT-NUMBER2 NAME-2
> // Platform: Linux (or Apple)
>
> #start of whatever runml code here
> ...
> ...
Your code won't compile if you do this.
> OR should it have the c header files and look like this:
>
>
> // CITS2002 Project 1 2024
> // Student1: STUDENT-NUMBER1 NAME-1
> // Student2: STUDENT-NUMBER2 NAME-2
> // Platform: Linux (or Apple)
>
> #include <stdlib.h>
> #include <stdio.h>
> ...
> ...
>
This is what you should submit.
> Would appreciate any clarification on this. Thanks in advance and cheers.
You must import the necessary header files, which is necessary for your program to compile.