當前位置:編程學習大全網 - 網站源碼 - VB高手來幫忙拉,緊急懸賞壹個小程序 馬上要

VB高手來幫忙拉,緊急懸賞壹個小程序 馬上要

我是做腳本語言的,所以我的輸出和VB的輸出不太壹樣,而且沒有變量類型,不過放在VB中100%能用,只要改壹下輸出函數

1題是

'window.document.write(sum(1,1,1))

function sum(m,n,p)

sum=sum1_x(m)+sum1_x(n)/sum1_x(p)

end function

'window.document.write(sum1_x(2))

function sum1_x(x)

dim a

a=0

dim temp

dim i

for i=0 to x

a=a+i

'window.document.write(a)

next

sum1_x=a

end function

2題

s="asdf dfas fdasg fgd b gg aesf ga ga gfadfg agre adgf afgadfgad aggadf fag agf asfg afsd"

a=Split(s," ")

tmep=""

for i=LBound(a) to UBound(a)

if (len(a(i))>len(temp)) then

temp=a(i)

end if

'window.document.write(a(i))

next

window.document.write(temp)

如果在vb中window.document.write換成print

  • 上一篇:65元壹盒的悅刻煙彈是假的嗎
  • 下一篇:區塊鏈開源技術有哪些?
  • copyright 2024編程學習大全網