From dc6284a432f3a20457865138cd741966cdb2ab58 Mon Sep 17 00:00:00 2001 From: Bora Date: Fri, 30 May 2025 08:51:25 +0200 Subject: [PATCH] halo --- 28.4.3_romzahl.c | 2 -- 28.4.3_romzahl2.c | 2 +- 28.6.3_wortstat.c | 5 +++-- test.txt | 1 + 4 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 test.txt diff --git a/28.4.3_romzahl.c b/28.4.3_romzahl.c index 4df0e06..957edd7 100644 --- a/28.4.3_romzahl.c +++ b/28.4.3_romzahl.c @@ -30,8 +30,6 @@ int main() { printf("Zu wandelnde Zahl: "); scanf("%d", &zahl); - - printf("... %d = ", zahl); // Über die Ziffern von groß nach klein iterieren (von hinten nach vorne) diff --git a/28.4.3_romzahl2.c b/28.4.3_romzahl2.c index 7f3e0b7..6ca348a 100644 --- a/28.4.3_romzahl2.c +++ b/28.4.3_romzahl2.c @@ -7,7 +7,7 @@ typedef struct { } RoemZahl; int main() { - // Array aufsteigend sortiert (klein nach groß), inkl. Super-Subtraktionsregeln + // Array aufsteigend sortiert (klein nach groß) RoemZahl ziffern[] = { {1, "I"}, {4, "IV"}, diff --git a/28.6.3_wortstat.c b/28.6.3_wortstat.c index 8a82e04..4a9f75e 100644 --- a/28.6.3_wortstat.c +++ b/28.6.3_wortstat.c @@ -103,5 +103,6 @@ int main() { return 0; } -// Kompilieren: gcc -o wordstat wordstat.c -// Ausführen: ./wordstat < somefile.txt \ No newline at end of file +// Kompilieren: gcc -o 28.6.3_wortstat 28.6.3_wortstat.c + +// Ausführen: 28.6.3_wortstat.exe < test.txt \ No newline at end of file diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..0effd46 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +hallo was geht ich bin hallo was geht ich bin hallo was geht \ No newline at end of file