![]() |
.. (לתיקייה המכילה) | |
May we assume arrays always begin in index 1 and is continuous?
|
Updated: Please use indexes that begin in 0 and is continuous (and not 1). Otherwise you may get errors when using arrays in functions. |
Should we check the legitimate of the arguments given to the function?
|
You don't have to, but you can. In case of an error do what you think suitable. |
What should be the neutral element for the function that finds the earliest string lexicographically?
| You can send the first element of the array, or maybe a value that the step function knows to ignore (meaning to always treat it as bigger than any given string). |
Should the function that finds the minimum integer support negative values? if so - what is the neutral value for that function?
| You can use -MaxInt. |
Should the function that adds the roots support negative values (and use abs)?
| You can assume they are all non-negative. |
How do we initialize an array with its declaration?
|
Assign values with '= (..., ..., ...);' Example: var numbers : array[0..4] of integer = (1,2,3,4,5); |
Can we trust the < operator on strings for the lexical ordering?
|
use CompareStr(). See http://www.freepascal.org/docs-html/rtl/sysutils/stringfunctions.html |
Should we check the case in which we send an empty array and n=0?
| You don't have to check this case. |
You wrote that the file should be loaded ללא שגיאות או הערות. What do you mean by הערות?
| It should be אזהרות (warnings). It's a mistake. |
What kind of examples are we expected to give and how many?
| Give 2-3 examples for each of the six demands. Try to think of interesting examples that show non trivial cases if possible. |
What exactly are we expected to submit?
|
As written, you have to submit scan-function and step-functions you used to implement the 6 demands. You're also requested to submit a main function that runs 2-3 example for each demand. No need to submit all 9 possible scan function. |
I'm trying to use math and sysutils but I'm failing to use both of them. What's the correct syntax?
| Uses Math, SysUtils; |

