![]() |
.. (לתיקייה המכילה) | |
Question: 16 lines per function bonus. Which lines are counted? | |
Only the implementation of the BODY of the function. No declaration, no header, no {,} symbols | |
קישור: Link: Ссылка: وصلة: | https://grades.cs.technion.ac.il/grades.cgi?dbdidciidc2a24b7b924a201173b0c+2+234114+Spring2019+hw/WCFiles/Line%20Counting%20Procedure.pdf |
Question: Should i implement all the questions without if/else/do-while/switch in order to get 10 point bonus? | |
No. Only question 1 is required for the bonus points. Check-out: using while to simulate plain if will be counted,as if was used !! |
Question: Should I implement all 3 questions with functions shorter than 17 lines to get the bonus? | |
Answer: No. Only Question 1 is counted for bonus. For readability of the code - a nice idea to implement it everywhere. |
I am getting the following error: | |
You can return the unused variable, return res; instead of return 0; In the end of main. |
i am getting the following error: | |
It happens because you are declaring array with variable size and this is forbidden, You can declare it with size NxN Make sure to #define N to some large enough value. |
Should I #define 0 and 1 ? | |
No need. |
Q1: Can I use operator ?: instead of if and still get the bonus? | |
No. Hint: boolean expressions |