优秀宏以及输入挂

#define mem(a) memset(a,0,sizeof(a))

int read()
{
    int x=0,f=1;char ch=getchar();
    while(!isdigit(ch)){if(ch=='-')f=-1;ch=getchar();}
    while(isdigit(ch))x=x*10+ch-'0',ch=getchar();
    return f*x;
}

透过泪水看到希望
原文地址:https://www.cnblogs.com/ronnielee/p/9513839.html