• 2 Posts
  • 0 Photos
  • 0 Videos
  • Male
  • 10/09/1992
  • Followed by 3 people
Basic Info
  • Account Type
    Personal
Search
Recent Updates
  • Ich habe mir Nachrichten angeguckt, also straßen-nachrichten, die nicht so bekannt sind, also ich glaube alternative Medien dort wird von Niancine ziehenen geredet und diese nierenschiene sind in Trenq drinne.bin mir nicht sicher wie niancine geschrieben wird.
    Ich habe mir Nachrichten angeguckt, also straßen-nachrichten, die nicht so bekannt sind, also ich glaube alternative Medien dort wird von Niancine ziehenen geredet und diese nierenschiene sind in Trenq drinne.bin mir nicht sicher wie niancine geschrieben wird.
    0 Comments 0 Shares 179 Views
  • #include <stdio.h>
    #include <string.h>
    #include <ctype.h>

    int main() {
    // Liste von Wörtern die du verbieten willst
    const char* blocked_words[] = {"wort1", "wort2", "test"};
    int num_words = 3;

    char input[500];
    printf("Gib Text ein: ");
    fgets(input, 500, stdin);

    // Geht alle verbotenen Wörter durch
    for(int i = 0; i < num_words; i++) {
    char* pos = strstr(input, blocked_words[i]);
    while(pos!= NULL) {
    // Ersetzt das Wort durch ***
    for(int j = 0; j < strlen(blocked_words[i]); j++) {
    pos[j] = '*';
    }
    pos = strstr(pos + 1, blocked_words[i]);
    }
    }

    printf("Gefilterter Text: %s", input);
    return 0;
    }
    #include <stdio.h> #include <string.h> #include <ctype.h> int main() { // Liste von Wörtern die du verbieten willst const char* blocked_words[] = {"wort1", "wort2", "test"}; int num_words = 3; char input[500]; printf("Gib Text ein: "); fgets(input, 500, stdin); // Geht alle verbotenen Wörter durch for(int i = 0; i < num_words; i++) { char* pos = strstr(input, blocked_words[i]); while(pos!= NULL) { // Ersetzt das Wort durch *** for(int j = 0; j < strlen(blocked_words[i]); j++) { pos[j] = '*'; } pos = strstr(pos + 1, blocked_words[i]); } } printf("Gefilterter Text: %s", input); return 0; }
    0 Comments 0 Shares 301 Views
More Stories