VB用单循环实现单击窗体显示图1所示图形。提示:去点代码中的【?】,添些正确代码
optionexplicitprivatesubform_click()dimi%fori=1to【?】printtab(【?】);"★";string(【?】,"☆")...
option explicit
private sub form_click()
dim i%
for i=1 to 【?】
print tab (【?】);"★"; string(【?】, "☆"); "★"
next i
print tab (18) ; "☆"
for i = 5 to 【?】
print tab (【?】); "☆"; string(【?】,"★");"☆"
next i
end sub
在线急求!!谢谢 展开
private sub form_click()
dim i%
for i=1 to 【?】
print tab (【?】);"★"; string(【?】, "☆"); "★"
next i
print tab (18) ; "☆"
for i = 5 to 【?】
print tab (【?】); "☆"; string(【?】,"★");"☆"
next i
end sub
在线急求!!谢谢 展开
1个回答
展开全部
option explicit
private sub form_click()
dim i%
for i=1 to 5
print tab (i);"★"; string((6-i)*2+5-i, "☆"); "★"
next i
print tab (18) ; "☆"
for i = 5 to 1 step -1
print tab (i); "☆"; string((6-i)*2+5-i,"★");"☆"
next i
end sub
private sub form_click()
dim i%
for i=1 to 5
print tab (i);"★"; string((6-i)*2+5-i, "☆"); "★"
next i
print tab (18) ; "☆"
for i = 5 to 1 step -1
print tab (i); "☆"; string((6-i)*2+5-i,"★");"☆"
next i
end sub
更多追问追答
追问
运行后有点出入啊。。你在帮忙看看!!谢谢!!
追答
呵呵,我这也没Vb6的环境,只能按到意思猜,你把有出入的图发上来看看
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询