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.

Umwandlung eines Character-Int Wertes in Character

Empfohlene Antworten

Veröffentlicht

Folgendes Problem:

Ich habe eine Int Variable, in der zum Beispiel eine 97 gespeichert ist. Daraus möchte ich ein Character Zeichen a machen.

atio wird nicht akzeptiert, da es veraltet ist.

_atio wird als unsicher markiert

_atio_s möchte Parameter, welche mir schleierhaft sind und es will auch nicht funktionieren

(char)variable würde nur die Zahl als solches in das Char Format umwandeln

fprint(char,"%d",int) habe ich auch versucht und nur einen fehler erhalten

langsam bin ich etwas verzweifelt.

Ich hoffe, dass mir da jemand helfen kann. Übrigens lässt es sich leider nicht umgehen das Zeichen erst als Int zu verarbeiten

  • Autor

Ach verdammt.

Wer genau hinguckt sieht auch den tatsächlichen Fehler...

Bei dieser Zeile,

this->datei = this->datei + Convert::ToString(buchstabe);

erweitert er den String "datei" um den Integer Wert des Chars.

Woran könnte das liegen?

  • Autor

Ok, jetzt kommt das nächste Problem.

Ich habe einen Dateipfad wegen der variablen länge in einem String^ stehen.

Mit fopen möchte ich diese Datei dann öffnen, was allerdings nicht geht, da fopen ein const char* haben möchte.

Gibt es ne andere Funktion, die ich nutzen könnte?

Hier wird ein kleiner Denkanstoß benötigt.

Wie schließt man eigentlich ein DOS-Fenster? close(); ist es schon mal nicht :(

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.