计算机vb程序设计;大家可有什么好的参考书??

来源:百度知道 编辑:UC知道 时间:2024/05/10 21:24:43
希望大家能给我的面子那

教育部考试中心的等级考试教材,挺不错的。

5月19日 00:10 function sjx(a,b,c)
dim p as single,s as single
if (a+b)>c and (a+c)>b and (b+c)>a and a>0 and b>0 and c>0 then
p=(a+b+c)/2
s=sqr(p*(p-a)*(p-b)*(p-c))
else
s=0
end if
sjx=s
end function
这是一个function,不能放到sub里。
打错了,开平方是sqr() 不是sqrt

该回答在5月22日 18:16由回答者修改过

揪错 ┆