天地有情电视剧黄天美:大家帮我看一下哪里错了?VBS的

来源:百度文库 编辑:高考问答 时间:2024/05/03 09:22:10
dim a,b,c
a=inputbox("输入你的孩子的名字")
b=("王磊")
c=("王静")
if a=b then
Msgbox("怎么都宠着他呀~!")
if a=c then
Msgbox("怎么都宠着她呀~!")
else
Msgbox("这不是您的孩子吧?")
end if
2楼的,不对呀
加了以后:
行:11
字符:7
错误:缺少“End”

if a=c then 改为 elseif a=c then

在if a=c前加个else

if a=c then改为
elseif a=c then
或者
end if
if a=c then

初学编程就应该养成良好的编程习惯