vbs의 예법의 9
개요
vbs 예법을 찾아봤는데
한번 해봤어요.
사진.
샘플 코드 Dim zundoko, loopCnt, result, tempResults
loopCnt = 0
Set zundoko = CreateObject("System.Collections.ArrayList")
Do While True
If loopCnt > 5 Then
loopCnt = 0
End If
If Rnd < 0.5 Then
zundoko.add "ズン"
Else
zundoko.add "ドコ"
End If
If loopCnt = 4 Then
result = zundoko(zundoko.Count - 5) & zundoko(zundoko.Count - 4) & zundoko(zundoko.Count - 3) & zundoko(zundoko.Count - 2) & zundoko(zundoko.Count - 1)
If result = "ズンズンズンズンドコ" Then
Exit Do
End If
End If
loopCnt = loopCnt + 1
Loop
result = ""
For Each item In zundoko
result = result & item
Next
MsgBox result & " キ・ヨ・シ!"
이상.
Reference
이 문제에 관하여(vbs의 예법의 9), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/ohisama@github/items/c3d190f98673d5497bb4
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
![](https://s1.md5.ltd/image/0ce640d0e77ec2557953b9e2abde9a85.png)
샘플 코드 Dim zundoko, loopCnt, result, tempResults
loopCnt = 0
Set zundoko = CreateObject("System.Collections.ArrayList")
Do While True
If loopCnt > 5 Then
loopCnt = 0
End If
If Rnd < 0.5 Then
zundoko.add "ズン"
Else
zundoko.add "ドコ"
End If
If loopCnt = 4 Then
result = zundoko(zundoko.Count - 5) & zundoko(zundoko.Count - 4) & zundoko(zundoko.Count - 3) & zundoko(zundoko.Count - 2) & zundoko(zundoko.Count - 1)
If result = "ズンズンズンズンドコ" Then
Exit Do
End If
End If
loopCnt = loopCnt + 1
Loop
result = ""
For Each item In zundoko
result = result & item
Next
MsgBox result & " キ・ヨ・シ!"
이상.
Reference
이 문제에 관하여(vbs의 예법의 9), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/ohisama@github/items/c3d190f98673d5497bb4
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Dim zundoko, loopCnt, result, tempResults
loopCnt = 0
Set zundoko = CreateObject("System.Collections.ArrayList")
Do While True
If loopCnt > 5 Then
loopCnt = 0
End If
If Rnd < 0.5 Then
zundoko.add "ズン"
Else
zundoko.add "ドコ"
End If
If loopCnt = 4 Then
result = zundoko(zundoko.Count - 5) & zundoko(zundoko.Count - 4) & zundoko(zundoko.Count - 3) & zundoko(zundoko.Count - 2) & zundoko(zundoko.Count - 1)
If result = "ズンズンズンズンドコ" Then
Exit Do
End If
End If
loopCnt = loopCnt + 1
Loop
result = ""
For Each item In zundoko
result = result & item
Next
MsgBox result & " キ・ヨ・シ!"
Reference
이 문제에 관하여(vbs의 예법의 9), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/ohisama@github/items/c3d190f98673d5497bb4텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)