![]() |
.. (לתיקייה המכילה) | |
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". |
Can I transfer homework from previous semesters ? | |
No. |
Which compiler should I use in this course? | |
In the first tutorial, you will learn how to download and operate Dev-Cpp, which you will use for your hw assignments during the semester. This compiler can be downloaded from the course site ("material") and used at the Technion farms and at home. If you want to use a compiler with C++ support, such as Visual C, you have to make sure that you compile in ANSI C mode. We will not be supporting problems with any compilers other than Dev-Cpp, though. |
Can I write in C++ in this course ? | |
Absolutely not. This course is about pure ANSI-C, and usage of C++ constructs is considered an error in the assignments and the test. You will have time for C++ programming in courses you will take in your next semesters. As for using a C++ compiler for the homeworks, please see the previous question in this FAQ. |
Can I work from home? | |
Certainly. To work from home you will need the Dev-CPP compiler, which can be found under the "Material" section of this website. |