14 lines
366 B
C
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");
|
|
}
|