![]() |
.. (לתיקייה המכילה) | |
What happens if the same user logs out and then logs in? Is his balance saved? | |
You don't need to remember the balance of a user after he logs off (when he logs-on again, he will have his 2000 NIS back). |
Do we need to add a space after B, L, Q? | |
There is no need for a space after the commands that DON'T take parameters (B, L and Q). |
Is it ok to use features in the homework that was not taught in the tutorials yet? (for example, strings and arrays) | |
It's OK to use these feautures, as long as you know what you're doing. The program should work correctly, and no excuses like "we did not study arrays yet, that's why I made mistakes" will be accepted. |
I'm having a problem using scanf. After I enter the username, the following scanf reads the "enter" I clicked. What should I do? | |
Instead of writing scanf("%c") you can write scanf(" %c") (with a space before %c), and it should work better. The space before the "%c" will read all white spaces (newline, tab and space) and the first non-white space will be read into the "%c". Using the scanf this way will prevent the scanf from reading the "enter". |