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

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.

主站蜘蛛池模板: 麻栗坡县| 墨脱县| 苏尼特左旗| 区。| 麻栗坡县| 凌海市| 英吉沙县| 普安县| 珠海市| 宿松县| 晋中市| 彭州市| 罗源县| 五寨县| 盈江县| 望城县| 徐水县| 湄潭县| 天台县| 石河子市| 武强县| 诸城市| 富川| 讷河市| 滨州市| 舟曲县| 乌海市| 惠安县| 荣昌县| SHOW| 平度市| 灵山县| 平南县| 崇仁县| 浦北县| 通化县| 封开县| 渑池县| 神农架林区| 清远市| 汝南县|