It's UWAweek 48

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 3 articles in this topic
Showing 3 of 919 articles.
Currently 1 other person reading this forum.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported

Login to reply

👍?
helpful

Hi, When I compile and execute my program for Project 1 from VSCode or Windows PowerShell (as an .exe) it sometimes prints the correct value and sometimes doesn't print at all (just returns a new prompt for new entry). In Ubuntu, the compiled file prints the correct value every time it is run. Just wondering if this is something to worry about, and potentially (if possible without looking at the file itself), if there was a reason that this would be occurring? It seems odd that that the execution result varies each time it is executed in one (Windows), but consistent in the other (Ubuntu)


SVG not supported

Login to reply

👍?
helpful

Maybe you are making system calls that are not portable? Or using POSIX headers? I would have assumed that the program would fail to compile in that case, but not certain. Either way the project won't be tested on windows.


SVG not supported

Login to reply

👍?
helpful

"Matthew Carlsen" <23*8*8*[email protected]*u*e*t*u*a*e*u*a*> wrote:
> Maybe you are making system calls that are not portable? Or using POSIX headers?
The 'P' in POSIX stands for Portable, so (correctly) using POSIX functions is very unlikely to be causing problems.
> Either way the project won't be tested on windows.
That's true, but having such significant problems on a platform used by millions of people suggests a problem in the project code, which may 'reveal' itself when being tested.

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  1:17AM Sep 14 2022
Privacy policy