ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

³]©w­«½Æ¿é¥X¤@­Ó¦r¦ê (VB.net ª©)

³]©w­«½Æ¿é¥X¤@­Ó¦r¦ê (VB.net ª©)

¥»©«³Ì«á¥Ñ ivanyung ©ó 2010-8-20 21:36 ½s¿è


°µ¤F¨â­Ó¥j©Çªº¤pµ{¦¡...............

Recursion
  1.     Function ReptStr(ByVal MyChar As String, ByVal MyNo As Integer) As String
  2.         If MyNo > 0 Then ReptStr = ReptStr(MyChar, MyNo - 1) & MyChar
  3.     End Function
½Æ»s¥N½X
³ºµM¦³¤@¨Ç¦r¬O¥X¤£¨ì ..............




Array method.
  1.    Function ReptStr2(ByVal MyChar As String, ByVal MyNo As Integer) As String
  2.         Dim MyArr() As String
  3.         ReDim MyArr(MyNo)
  4.         ReptStr2 = Join(MyArr, MyChar)
  5.     End Function
½Æ»s¥N½X

        ÀR«ä¦Û¦b : ¶¢¤HµL¼Ö½ì¡A¦£¤HµL¬O«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD