deepthroat
Erfahrenes Mitglied
Was soll dein Programm denn tun und was würdest du als Ausgabe erwarten?Okay, danke! Ich habe das mal so gemacht! Mein Output ist nun allerdings auch nur noch 119 :S Woran mag das wohl liegen?
Gruß
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Was soll dein Programm denn tun und was würdest du als Ausgabe erwarten?Okay, danke! Ich habe das mal so gemacht! Mein Output ist nun allerdings auch nur noch 119 :S Woran mag das wohl liegen?
Was soll dein Programm denn tun und was würdest du als Ausgabe erwarten?
Gruß
#include <ctype.h>
...
while ((c = fgetc(datei)) != EOF) {
if (isdigit(c)) { // ist es wirklich eine Ziffer?
karte[b][h] = (c - '0');
b += 1;
} else if (c == '\n') {
b = 0;
h += 1;
}
}