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 1 other person reading this forum.


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

Login to reply

👍?
helpful
1:29pm Tue 6th Sep, ANONYMOUS

This is probably a really simple solution (and silly question) but how do we convert a char symbol to an int? I want to check if the given string is a symbol before returning an int value that's associated with that symbol but when I print the values, they are either wrong and not consistent. This is what I'm currently doing: E.g. if (strcmp(value, '.')) { int val = 1; return val; } Thanks.

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