Informatik2_Pr/bildsch.c
2025-05-01 14:02:55 +02:00

14 lines
366 B
C

#include <stdio.h>
#include "turing.h"
// Zeigt das Band an und markiert die aktuelle Position (mit eckigen Klammern)
void anzeigen(char *band, int pos) {
for (int i = 0; band[i] != '\0'; i++) {
if (i == pos)
printf("[%c]", band[i]); // aktuelle Position
else
printf(" %c ", band[i]); // normal
}
printf("\n");
}