公文高手,超级方便的公文写作神器! 立即了解


程序改错

4.'------------------------------------------------'【程序改错】

'------------------------------------------------

'题目:程序功能根据输入的学习成绩,分别显示优秀'(90分以上),良好(75分以上),及格(60分以上)'不及格四个等级.

'------------------------------------------------optionexplicit

privatesubform_clickcls

dimiasinteger

i=inputbox(\请输入学习成绩\selectcasei

'**********error**********caseis>100,is=form1.widththen'**********error**********label1.left=-label1.widthelse

label1.left=label1.left+100endifendsub

6.'------------------------------------------------'【程序改错】

'------------------------------------------------

'题目:移动数组元素,将数组中某个位置的元素移动到指定位置.

'------------------------------------------------optionexplicit

functionfmove(a%,l1%,l2%)

dimnasinteger,iasinteger,tasinteger'**********error**********n=ubound(a)

ifl2=n+1then

'**********error**********a(n+1)=a(l1)fori=l1tona(i)=a(i+1)nextielse

t=a(l1)a(l1)=a(l2)

'**********error**********a(l2)=tendifendfunction

privatesubform_clickdima%(1to5)dimiasintegerfori=1to5a(i)=inext

fmovea,1,5fori=1to5printa(i)

nextendsub


(未完,全文共3165字,当前显示998字)

(请认真阅读下面的提示信息)


温馨提示

此文章为6点公文网原创,稍加修改便可使用。只有正式会员才能完整阅读,请理解!

会员不仅可以阅读完整文章,而且可以下载WORD版文件

已经注册:立即登录>>

尚未注册:立即注册>>

6点公文网 ,让我们一起6点下班!