Autor |
Beitrag |
Horst-Dieter
Beiträge: 91
Erhaltene Danke: 16
|
Verfasst: Sa 28.02.09 12:27
Ich habe mir in Delphi 7 einen Taschenrechner als Komponente geschrieben.
Hat noch jemand Verbesserungsvorschläge?
Einloggen, um Attachments anzusehen!
|
|
Jakob_Ullmann
Beiträge: 1747
Erhaltene Danke: 15
Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
|
Verfasst: So 01.03.09 16:27
Also das sieht ja schon ganz gut aus. Aber: Wozu? Wann braucht man einen Taschenrechner als Komponente?
edit: Was ist A(d)?
|
|
Marc.
Beiträge: 1876
Erhaltene Danke: 129
Win 8.1, Xubuntu 15.10
|
Verfasst: So 01.03.09 16:50
A(d) berechnet die Kreisfläche, wobei d vermutlich für den Durchmesser stehen soll.
Ich halte es aber auch für fraglich, wofür man einen Taschenrechner als Komponente braucht. Hätte eine simple Opensource-Unit da nicht mehr Sinn gemacht?
Grüße,
Marc
|
|
Jakob_Ullmann
Beiträge: 1747
Erhaltene Danke: 15
Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
|
Verfasst: So 01.03.09 19:38
Bzw. wenn schon eine Taschenrechner-Komponente, dann sollte sie zumindest mit GANZEN TERMEN ( PARSER) arbeiten können.
|
|
ffgorcky
Beiträge: 573
WIN XP/2000 & 7Prof (Familie:Win95,Win98)
|
Verfasst: So 01.03.09 19:57
Der ist wirklich nicht schlecht!
Ich finde es nur schade, dass man dort nicht einfach mit dem (auf der Tastatur rechten) Num-Block rechnen kann...
Also wäre dort ja noch die Behandlung einer OnKeyPress()-Methode recht gut.
Nur mal so als Anregung.
- Aber sonst: Alle Achtung!
Den hätte ich nicht so ohne weiteres hinbekommen...
|
|
Hidden
Beiträge: 2242
Erhaltene Danke: 55
Win10
VS Code, Delphi 2010 Prof.
|
Verfasst: So 01.03.09 20:04
Also ich kann mir das eigentlich sehr gut vorstellen: Überall, wo ein Programm Zahleneingaben verlangt, die einigermaßen wahrscheinlich vorher berechnet werden müssen, spart das zumindest ein c&p.
mfG,
_________________ Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
|
|
Jakob_Ullmann
Beiträge: 1747
Erhaltene Danke: 15
Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
|
Verfasst: Mo 02.03.09 19:31
|
|
Hidden
Beiträge: 2242
Erhaltene Danke: 55
Win10
VS Code, Delphi 2010 Prof.
|
Verfasst: Mo 02.03.09 21:11
Dachte das vom Erscheinungsbild her eher so als ModalView-Fenster. Ein konkreter Anwendungszweck will mir gerade nicht einfallen, aber beispielsweise bei Simulationen könnten Eingaben verlangen, für die es Sinn macht, dass für die Eingebe eine komplettes Rechenwerkzeug bereitgestellt wird.
Andererseits bemüht man sich dann wohl eher um eigenes Design, das in die Anwendung passt und bindet zu den Funktionen und zum Parser eine Unit ein..
_________________ Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
|
|
Jakob_Ullmann
Beiträge: 1747
Erhaltene Danke: 15
Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
|
Verfasst: Mo 02.03.09 21:54
Naja, ich glaube, das war auch eher als Übung gedacht.
|
|