新人发帖求助
pascal吧
全部回复
仅看楼主
level 11
用pascal编写一个程序求出 x^2
+3
x+2=0 的两个解。
求大神 为什么这样错了。
2014年04月19日 12点04分 1
level 2
你设是,的,额做什么》
2014年04月20日 00点04分 2
求二次函数的解
2014年04月20日 00点04分
level 2
s,d,e
2014年04月20日 00点04分 3
什么意思?
2014年04月20日 00点04分
level 13
function不是这样子用的
var x1,x2,y1,y2,a,b:real;
function f(x:longint):longint;//求一元二次方程的解用不着它
begin
f:=a*x*x+b*y+c;
end;
begin
a:=1;b:=3;c:=2;
if △<0 then 输出错误;
x1:=求根公式1;
x2:=求根公式2;
writeln('X1=',x1,' X2=',x2);
end.
2014年04月20日 00点04分 5
可不可以去掉if语句 , 方程是x∧2+3*x+3=0
2014年04月20日 01点04分
已经知道方程了啊
2014年04月20日 01点04分
回复 Super_one3级 :当然可以
2014年04月20日 05点04分
level 2
function连定义都没有,做个毛
2014年04月20日 01点04分 6
还没学到哪里 [委屈] 怎么定义?
2014年04月20日 01点04分
level 12
不加function和后面那一句
2014年04月20日 01点04分 7
怎么编一个求二次函数 x^2+3x+2=0的解的程序
2014年04月20日 02点04分
level 11
不用function,把function删了
2014年04月20日 09点04分 8
1