利用scanf的讀取buffer
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
char t;
int check;
check = scanf("%c", &t);
printf("hello, ");
while (check != EOF)
{
printf("%c", t);
check = scanf("%c", &t);
}
printf("\n");
return 0;
}