For a = 0 To ListBox1.Items.Count - Dim i As Integ

发布时间:2021-02-24 06:58:10

For a = 0 To ListBox1.Items.Count - Dim i As Integer Dim x As Integer For i = 0 To ListBox1.Items.Count - x = x + CInt(ListBox1.Next MessageBox.Show((x /ListBox1.Items.Count.帮忙解释下这几句话的意思

网友回答

For i = 0 To ListBox1.Items.Count - 1 ------- 遍历ListBox中所有元素 x = x + CInt(ListBox1.Items(i)) -- 用X的值加上listbox中指定元素的值(cinT类型转化函数) MessageBox.Show((x /ListBox1.Items.Count.ToString)) == 弹出个消息 看了这解释,感到非常的xx ,哥们你是在学编程吗?
以上问题属网友观点,不代表本站立场,仅供参考!