参考这个博客,https://blog.****.net/sinat_40936062/article/details/84348021
#include<stdio.h> int main(void)
{
int t;
if (scanf_s("%d", &t) == )
{
printf("%d\n", t);
}
else
{
printf("Failed to read integer.\n");
} return ;
}
参考这个博客,https://blog.****.net/sinat_40936062/article/details/84348021
#include<stdio.h> int main(void)
{
int t;
if (scanf_s("%d", &t) == )
{
printf("%d\n", t);
}
else
{
printf("Failed to read integer.\n");
} return ;
}