Autor Beitrag
Rissstau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 49



BeitragVerfasst: So 12.11.06 18:06 
Hallo. Ich bins nochmal.

Hab mal wieder ne Frage.

Also: Mein Programm ist jetzt soweit fertig. Aber mir ist die Idee gekommen, vll noch so etwas wie eine Auswertung einzubauen, die anzeigt, wie viel Aufgaben man richtig hat und wie viele falsch...

Kann mir jemand dabei helfen... Hab mir schon überlegt, dass man vll 2 variablen braucht, die eine zählt die richtigen- die andere die falschen Ergebnisse...

Danke schonmal im Voraus!!!
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: So 12.11.06 18:38 
Ähm, ja. Wo ist die Frage? ;)

Ich würde aber eher sagen, zähle die Gesamtzahl und die richtigen. Dann kannst du gleich sagen p % richtig, mit p=Richtig/Gesamt*100

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Rissstau Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 49



BeitragVerfasst: So 12.11.06 19:09 
ok, aber wie mach ich dass denn ganau???
BerTeL
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Windowx XP
Delphi 7 Enterprise
BeitragVerfasst: So 12.11.06 19:14 
nimm einen globalen interger (z.b. richtige) ...

Und dann mach halt immer
ausblenden Delphi-Quelltext
1:
2:
if antwort = richtig then 
richtige := richtige + 1;
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 12.11.06 19:16 
Nimm zum Erhöhen lieber inc(richtige), sonst gewöhnst du dir die andere Schreibweise noch an.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot