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


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

Login to reply

👍?
helpful
11:27am Tue 6th Sep, ANONYMOUS

"Christopher McDonald" <ch*i*.*c*o*a*[email protected]*a*e*u*a*> wrote:
> ANONYMOUS wrote: > > > For example, sscanf("%s", atoi(minute)); doesn't work when compiling. > > For a start, this line doesn't make sense - atoi() is a function returning an integer, but you're then providing it 'to' an input format specifier, the %s, that is trying to match a string (actually a whitespace separated 'word') and to copy what it read into that integer value. It's good that the compiler is identifying this as an error.
Yes, this makes sense. I'll be using my own functions now which will convert each valid sequence of chars to its designated int value before storing it into an array of structs.

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