读入外挂系列

卿学姐的读入挂:http://www.cnblogs.com/qscqesze/p/5736748.html

手写getchar()

 1 inline char getcharc()
 2 {
 3     static const int BUFSIZE=100001;
 4     static char buf[BUFSIZE],*psta=buf,*pend=buf;
 5     if(psta==pend)
 6     {
 7         psta=buf;
 8         pend=buf+fread(buf,1,BUFSIZE,stdin);
 9         if(psta==pend)
10             return -1;
11     }
12     return *psta++;
13 }
原文地址:https://www.cnblogs.com/xseventh/p/7344520.html