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

Hallo an alle...

ich sitz grad voll auf der Leitung und komm nicht weiter...

Hoffentlich kann mir jmd helfen :)

also ich habe eine funktion geschrieben die mir die umlaute raunehmen soll und sie durch z.B. ue ersetzt

void uml_to_alternative(TCHAR* umltext, TCHAR* alttext)

{

	TCHAR* umlaute = "äöüÄÖÜ";

	TCHAR* ausgeschrieben = "aeoeueAeOeUe";

	int j = strcspn(umltext, umlaute);

	int i = strlen(umlaute);

	for(int k=0; k<i; k++)

	{

		TCHAR* pointer = strchr(umltext, umlaute[k]);

		umltext.replace(j, 1, ausgeschrieben, 2*k, 2);  //Problem

	}	


}

So jetzt sagt der mir Error C2228: left of '.replace' must have class/struct/union

Hab diese Syntax von der Seite

replace - C++ Reference

Warum funktioniert des bei mir nicht!?

Warscheinlich ist es ein Denkfehler meinerseits...

Wenn des zutrifft muss ich mich entschuldigen... aber ich bin noch neu in der Branch

danke schonmal im vorraus :)

lg

_Faby_

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.