官术网_书友最值得收藏!

Comparing values

In the next stage of the process, we will compare values. To do this, enter the following after the closed curly brace/semicolon beneath the preceding line:

sampLabel.Text = CompareValuesInList(compareValues, doubleVals[0], doubleVals[1], doubleVals[2]).ToString();

Here, CompareValuesInList is a function that you can create. Then you'll pass in compareValues. In other words, when this line says compareValues, the entire CompareValues block from above will be passed into the body of the function. You've never done this before. You're passing around entire blocks of code! Next, you enter doubleVals[0] to get the first value, and then you can copy (Ctrl + C) and repeat this for the other ones at index 1 as doubleVals[1] and at index 2 as doubleVals[2] because there are three of them.

主站蜘蛛池模板: 建瓯市| 西昌市| 普定县| 瓮安县| 广德县| 宣汉县| 萝北县| 宁陕县| 丰镇市| 永顺县| 雷山县| 庄河市| 中牟县| 封丘县| 水富县| 封丘县| 高唐县| 长沙县| 得荣县| 长寿区| 新龙县| 巴中市| 剑河县| 壤塘县| 清丰县| 楚雄市| 台江县| 保靖县| 衡南县| 寿宁县| 浮山县| 贵德县| 弥渡县| 金华市| 连云港市| 承德县| 景泰县| 廉江市| 阳原县| 麻江县| 襄樊市|