It's UWAweek 47

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 selected article
Showing 1 of 828 articles.
Currently 96 other people reading this forum.


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported

Login to reply

👍?
helpful
4:01pm Thu 12th Sep, ANONYMOUS

The ml doesn't need a main because it's not being compiled. It's the temporary C file being compiled which will need a main like every C program.

right, I understand that the temporary C files can just be encapsulated like so (correct me if i'm wrong):


int main(int argc, char *argv[]) {

   // converted c code here

}

but that doesn't really explain how the program can access the arguments, as we don't know what the program is going to refer the argument values as when doing the computing, so we cant really name the main parameters argc and argv right?

unless i'm missing something and it says how the arguments is going to be used in the ml file

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