It's UWAweek 38 (2nd semester, week 8)

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 492 articles.
Currently 11 other people reading this forum.


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

Login to reply

👍?
helpful
5:31pm Wed 28th Aug, Junyu Z.

Could we make this more clear or simplified? If we accept any representations, the situation may be a little bit complicated: 1. "1.5e4F" -> Some characters like ".eF" must be grabbed when tokenizing a real number. 2. "- 4" -> A space-separated minus may not be an operator, but the sign of a real number. 3. ".123" -> Not all real numbers start with or end with digits. Although APIs like atof or strtof can check and parse potential real number tokens very well, knowing characters in real number token is necessary when splitting words. Another solution may be simply the syntax of real number, that will make life easier. For example, all real numbers will be like '[+-]([0-9]*)[.]([0-9]*)'.

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