![]() Min(5, 6) returns 5 as it should, and the expected way how it should work is (min 6, 7, 3) and return 3 and you can expend it to an infinite number of parameters. Since the project shouldn't be that complex I think I'm missing an easy way to do it. The only solution I could think of is rather complex. I think one solution would be to seperate each value with an, in the min/max function and calculate it and then give it back to the min/max function, but I'm not sure how to implement it. One of the last tasks is to expand the min/max function to calculate min/max with more than only two parameters and thats the task where I'm currently stuck. We had to implement the bracket operator, sign operators and min max functions.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |