+ -
当前位置:首页 → 问答吧 → select case语句的问题

select case语句的问题

时间:2011-10-18

来源:互联网

弱弱的问下各位大侠 下面这个 select case 语句怎么改成可运行的select case语句 
Select Case y, x
  Case x > 0 And y > 0
  Print “点在第一象限”
  Case x < 0 And y > 0
  Print “点在第二象限”
  Case x < 0 And y < 0
  Print “点在第三象限”
  Case x > 0 And y < 0
  Print “点在第四象限”
End Select 

作者: bluefoxEV   发布时间: 2011-10-18

if x > 0 then
  if y > 0 then Print “点在第一象限”
  if y < 0 then Print “点在第四象限”
end if
if x < 0 then
  if y > 0 then Print “点在第二象限”
  if y < 0 then Print “点在第三象限”
end if 


这不是更清晰么

作者: WallesCai   发布时间: 2011-10-18

热门下载

更多