It's UWAweek 37 (2nd semester, week 7)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying the 4 articles in this topic
Showing 4 of 409 articles.
Currently no other people reading this forum.


 UWA week 34 (2nd semester, week 5) ↓
SVG not supported

Login to reply

👍?
helpful
3:42pm Sun 25th Aug, ANONYMOUS

Hi, I was wondering roughly what size input we should expect to process in the text files; would it be appropriate to use BUFSIZ in fgets as shown below? (example from lecture 7) FILE *dict; char line[BUFSIZ]; dict = fopen( ..... ); while( fgets(line, sizeof line, dict) != NULL ) { .... .... // process this line .... } Also, will there be any code samples of the ml language given for us to run/ test our project on, or should we make our own .ml test files? If we do make our own test files, can we get them checked during a help session if there isn't a sample file we can compare it to? Thanks!


 UWA week 35 (2nd semester, week 6) ↓
SVG not supported

Login to reply

👍?
helpful
4:13am Mon 26th Aug, Christopher M.

ANONYMOUS wrote:
> I was wondering roughly what size input we should expect to process in the text files; would it be appropriate to use BUFSIZ in fgets as shown below? (example from lecture 7)
Yes, BUFSIZ (8192 on Linux, 1024 on macOS) is a suitable choice for your maximum line length.
> Also, will there be any code samples of the ml language given for us to run/ test our project on, or should we make our own .ml test files? > If we do make our own test files, can we get them checked during a help session if there isn't a sample file we can compare it to?
You should write your own test programs, and not rely on a finite number of sample cases. There will be a webpage to which you can enter your ml programs, and view the sample solution's execution. Almost there.


SVG not supported

Login to reply

👍?
helpful
11:31am Mon 26th Aug, Christopher M.

ANONYMOUS wrote:
> Also, will there be any code samples of the ml language given for us to run/ test our project on, or should we make our own .ml test files?
There are now many simple examples on the project's main page.


SVG not supported

Login to reply

👍?
helpful
8:22pm Tue 27th Aug, ANONYMOUS

Thank you so much!

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy