nie wyszukuje zmiennej

0

Po kompilacji tego kodu dostaje błąd

#include <stdio.h>
#include <type.h>

int main ()
{
FILE * pFile;
pFile=fopen ("myfile.txt","r");
{
int c;
while((c=getc (pFile))!=EOF){
if (c == '\n') putchar('\n');
else if(isdigit(c)) putchar(c);
};
fclose (pFile);
}
return 0;
}

D:\CodeBlocks\sd\as.cpp|2|error: type.h: No such file or directory|
D:\CodeBlocks\sd\as.cpp||In function 'int main()':|
D:\CodeBlocks\sd\as.cpp|12|error: 'isdigit' was not declared in this scope|
== Build finished: 2 errors, 0 warnings ===

Co jest tego powodem ?

0

ctype.h

1 użytkowników online, w tym zalogowanych: 0, gości: 1