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

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.

主站蜘蛛池模板: 泰兴市| 巩义市| 清水县| 德庆县| 朔州市| 潼南县| 南宫市| 九台市| 道孚县| 扎囊县| 搜索| 金寨县| 嘉兴市| 菏泽市| 永定县| 万宁市| 竹溪县| 原阳县| 瑞安市| 昌图县| 桦南县| 右玉县| 通渭县| 长沙市| 开鲁县| 清镇市| 济阳县| 昂仁县| 苍南县| 漾濞| 大方县| 闸北区| 拉孜县| 龙游县| 红桥区| 洞口县| 本溪| 巫山县| 冀州市| 长垣县| 西充县|