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.

Ausschließen von Zeichen aus der ASCII-Tabelle!?

Empfohlene Antworten

Veröffentlicht

Hi!

Es geht noch einmal um mein Programm. Ich bin jetzt soweit, das ich Buchstaben aus einer bzw. nacheinander auch mehreren Dateien auslese und diese in einem Array speicher bis z.B. ein Leerzeichen kommt. Das sieht so aus:

while (c != EOF)

{

c = fgetc (fz);

if (c == ' ' || c == ',' || c == '.' || c == EOF ||

c == '(' || c == ')' || c == '?')

{

buffer1[pos] = '\0';

_strlwr(buffer1);

if(strstr (buffer1, Eingabe))

{

Gefunden = 0;

pos = 0;

}

else

Gefunden = 1;

pos = 0;

}

if (Fehler == 0)

break;

buffer1[pos] = c;

pos++;

}

Nun möchte ich die Bedingung für das erste if so formulieren, das ich alle Zeichen der ASCII-Tabelle nehme, ausser den 'richtigen' Buchstaben. Wie kann ich das machen :confused:, ich habe das in meinem Buch mal gelesen, finde es aber nicht mehr :(.

Danke Bine

Danke!

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.