找不出错误...望解答...
#include<stdio.h>#include<stdlib.h>
#define BUFFERSIZE 1024
int main()
{
unsigned int a,b,sum;
char buffer[BUFFERSIZE];
printf("*************************************\n");
printf("* Welcome to use our counter *\n");
printf("* Input two integers in on line *\n");
printf("* The sum will be printe *\n");
printf("* Input the char '#' to quit *\n");
printf("*************************************\n");
while(fgets(buffer,BUFFERSIZE,stdin)!=NULL)&&(buffer[0]!='#');
{
if(sscanf(buffer,"%d%d",&a,&b)!=2)
{
printf("the input is skipped:%s",buffer);
continue;
}
sum=a+b;
printf("The sum of%dand%dis%d\n",a,b,sum);
}
return 0;
}
望高手指点...运行不了哦...