Autor Beitrag
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Mi 27.04.05 16:52 
des hilft mir nich weiter warum bei mir immer c zu lan ist :cry: :cry: :cry: :cry: :cry: :cry: :?: :?: :?: :?:

mfg Michel
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Mi 27.04.05 16:55 
Du kannst deine Zeichenmethode aber einfach mal durch diese ersetzen. ;) Einfügen, die Variablen anpassen. ;)
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Do 28.04.05 13:55 
ok dann ist c nicht zu lang aber gamma ist dann nicht immer 90° :?
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Do 28.04.05 13:56 
Zu diesem Problem zitiere ich mich einfach mal selber:
user profile iconWeBsPaCe hat folgendes geschrieben:
Was ich mir noch überlegt hab: Wenn Gamma immer 90° haben soll, dann machst du einfach ne Abfrage rein, ob p*q=h². Weil wenn das nicht stimmt, dann haste kein Rechtwinkliges Dreieck. ;)


;)
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Do 28.04.05 14:00 
mein problem liegt daran das q+p nicht c ist, weil es gerundet ist wisst ihr wie ich des umgehen kann?
Noch ne frage wie kann ich einen real in einen integer umwandeln gibt es da nen befehl?
HolgerB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 91

Win XP
D6 Pers
BeitragVerfasst: Do 28.04.05 14:16 
Hallo,
versuch mal das:

ausblenden Quelltext
1:
Int := FloatToInt(rel);					

Gruß
Holger
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Do 28.04.05 15:00 
@Holger ich hab des jetzt so

ausblenden Delphi-Quelltext
1:
ar := FloatToInt(a);					


ar ist meine Integer Variable und a meine real.
Bei mir kommt da aber nen fehler

ausblenden Delphi-Quelltext
1:
[Error] UDreieck.pas(239): Undeclared identifier: 'FloatToInt'					


ist daran was falsch?
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Do 28.04.05 16:39 
Hey ich habs gelöst es funzt jetzt sau cool :D :D
thx für eure Hilfe
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Do 28.04.05 16:43 
user profile iconT1g3r hat folgendes geschrieben:
Hey ich habs gelöst es funzt jetzt sau cool :D :D
thx für eure Hilfe

:lol: Was hast du denn jetzt gemacht?
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Do 28.04.05 16:52 
user profile iconT1g3r hat folgendes geschrieben:
mein problem liegt daran das q+p nicht c ist, weil es gerundet ist wisst ihr wie ich des umgehen kann?
Noch ne frage wie kann ich einen real in einen integer umwandeln gibt es da nen befehl?
Round (runden) oder Trunc (kommastellen abschneiden).

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Do 28.04.05 16:54 
ich hab jetzt die werte mit 2 kommastellen mal 100 genommen und dann hab ich sie gerundet und als integer abgespeichert, so dass ich sie in einem Image zeichen konnte :) :) :) :) :) :) :) :)
ich stell des prog mal auf die page. Es ist wirklich gut!!!
Des rechnet die Seiten eines rechtwinkligen Dreiecks aus und zeichnet es auch noch, wenn man will :D :D :D :D :D :D

thx für all die Hilfe
Ich werd auch anderen helfen wenn ichs kann :lol: :lol: :lol:

mfg Michel
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Fr 29.04.05 13:16 
hey ich hab noch ne frage wie kann ich mit if-then-else was machen wenn 2 sachen erfüllt sein müssen??
Zum beispiel c und a > 0 ????
wie geht das???

mfg Michel
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Fr 29.04.05 13:28 
ausblenden Delphi-Quelltext
1:
if (a>0) and (c>0) then					

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Fr 29.04.05 13:35 
ja habs schon trotzdem Danke :D :D