phper的c之路
作者:互联网
long get_long()
{
long input;
int ch;
while(scanf("%ld", &input) != 1)
{
printf("%ld", input);
while((ch = getchar()) != '\n')
putchar(ch);
printf(" is not an integer . Please enter an integer value \n");
}
return input;
}
标签:ld,ch,之路,long,phper,while,integer,input 来源: https://blog.csdn.net/weixin_38447055/article/details/89057975