#include <stdio.h>
int main(){
int ch = 0;
while ((ch = getchar()) != EOF){
if (ch < '0' || ch>'9') {
continue;
}
putchar(ch);
}
return 0;
}
只输出0--9,其余一切都不输出
标签:输出,ch,示例,int,应用,main,getchar From: https://blog.51cto.com/u_13606048/6085706
#include <stdio.h>
int main(){
int ch = 0;
while ((ch = getchar()) != EOF){
if (ch < '0' || ch>'9') {
continue;
}
putchar(ch);
}
return 0;
}
只输出0--9,其余一切都不输出
标签:输出,ch,示例,int,应用,main,getchar From: https://blog.51cto.com/u_13606048/6085706