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

welche man auch nicht bei einem std::string anwenden kann ;)

Dafür gibt es ja die Funktion c_str(). :rolleyes:

Edit:

Ok, da war ja noch eine Seite, die ich nicht gesehen hab.

ich denke du hast auch das vor deinem Post nicht gelesen ;)

Naja, ich dachte ja nicht daran c_str() als Buffer einzusetzen...

eher sowas in der Art:


char buffer[20];

int zahl=123;

_itoa(zahl, buffer, 10);

string str = string(buffer);

oder so ähnlich... hmm... wobei - wenn _itoa auch einen char * zurückgibt...

int zahl=123;

string str = string(_itoa(zahl, new char[20],10));

... müsste ja auch das gehen.

Aber da es nicht zum Standard gehört, kann man es glaub ich eh für sauberen Code vergessen.

Edit:

ahh, ok, jetzt versteh ich was du meintest.

c_str() darf man natürlich nicht als Parameter verwenden. :hells:

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.