VB程序运行时,单击命令按钮,显示输入对话框,在对话框里输入某个月份后,在标签里显示该月份所在季节:

2025-12-15 09:06:54
推荐回答(2个)
回答1:

If n = 3 Or 4 Or 5 Then
不能这么写,应该是
If n = 3 Or n=4 Or n=5 Then

回答2:

'm 月份
's 季节
dim m as int..
dim s as string
if m >=3 and m<=5 then
s="spring"
else if m >=6 and m<=8 then
s="summer"
else if m >=9 and m<=11 then
s="autumn"
else
s="winter"
endif