项目8过程探究.pptxVIP

  • 2
  • 0
  • 约2千字
  • 约 74页
  • 2017-10-05 发布于湖北
  • 举报
程序设计与实践 Visual Basic.NET;;;;为什么要使用过程;6;7;8;9;;11;12;13;14;15;16;17;18;19;20;21;22;23;24;sub subThe(ByVal s As String, ByRef count as integer) dim i As Integer, st As String Count = 0 : st = Trim(s) i = InStr(st, the ) Do While i 0 当i0说明找到 Count = Count + 1 统计个数加1 st = Mid(st, i + 1) 为找下一个准备 i = InStr(st, the ) Loop End Sub subThe(textbox1.text,c) ;26;27;28;29;例 交换两个数;Sub Swap1(ByVal x As Integer, ByVal y As Integer) Dim t As Integer t = x : x = y : y = t TextBox1.Text = 调用Swap1 x和y的值为: x

文档评论(0)

1亿VIP精品文档

相关文档