#include<stdio.h> int main() { //char s[80], c; //int i,j; while ((c = getchar())!=EOF) { if (c >= 'A'&& c<='Z'||c>='a'&&c<='z') putchar(c); } //printf("\0"); return 0; } /* Main.c: In function 'main': Main.c:6:10: error: 'c' undeclared (first use in this function) while ((c = getchar())!=EOF) ^ Main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in */ |
Double click to view unformatted code.