![]() |
Pascal Question
:
Ok, I´ll say what the problem is: the command "while not keypressed do" just function when D<0..well that's a real big problem because D can also be >0 and then the window closes before showing the coordinate of the vertex of the parable... NOTE: some of this program is in Portuguese, but it should not matter. |
Ok.... umm... Why did it post all short and scrawny like that?
Would someone please tell me how to fix that? |
Sure. Press enter once in a while.
|
Hi....LOL...that's my program.... :D :D
|
You've got a couple of missing begin...end blocks here. Because of that, you're evaluating:
raiz2 := (-b - sqrt(d))/(2*a); even when d is negative, which would cause your program to abort (because of the part in bold text). You also have some unnecessary begin..end blocks. Restructuring your code around a bit, I ended up with: :
program FormulaResolvente; |
|
| All times are GMT -5. The time now is 4:29 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC