Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Wie kann ich 1 und 0 in Schriftzeichen umwandeln?

Hallo!

=

01001000011000010110110001101100011011110010000100000000

Original geschrieben von GMKai

Wie kann ich 1 und 0 in Schriftzeichen umwandeln?

Hallo!

=

01001000011000010110110001101100011011110010000100000000

Ich nehme mal an, das die 1/0-Folge als Zeichenkette der vorliegt. Diese Zeichenkette musst du jetzt in Gruppen zu jeweils 8-Bit trennen. Dann für jede Gruppe die Bitfolge in eine Dezimalzahl umrechnen, wobei das linke Bit, den Stellenwert 2 hoch 7 hat, das zweite von links 2 hoch 6 ... und das rechte 2 hoch 0. Diese Stellenwerte der Stellen, deren Bit 1 ist, musst du jetzt addieren und erhältst den Ascii-Code des Zeichens. Wenn du diesen Wert einem char zuweist und diesen anzeigen lässt kannst du das zugehörige Zeichen sehen.

hth

Reinhold

danke erstmal.

das hört sich doch schon viel besser an, und war auch genau das, was ich gesucht habe!

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.