![]() |
Dual Addition
Wie erstelle eine Dual Addition in Delphi.
Also z.b
Code:
[edit=Luckie]Code-Tag eingefügt. Mfg, Luckie[/edit]
011111
+010111 =110110 |
Re: Dual Addition
Das hört sich mir schwer nach Hausaufgaben an.
Aber wenn nicht, rechne in Strings. Bitweise mit Volladdierern die du auf chars implementieren solltest. |
Re: Dual Addition
Result := Operand1 + Operand2 {+ Überlauf}
Code:
1 + 1 = 10 = 0 Überlauf 1
*0111[color=#0000ff]1[/color][color=#ff0000]1[/color]
+0101[color=#0000ff]1[/color][color=#ff0000]1[/color] =1101[color=#0000ff]1[/color][color=#ff0000]0[/color] 1 + 1 + 1 = 11 = 1 Überlauf 1 ... und nun einfach Stelle für Stelle weitermachen |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:43 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz