scanf in CLion
#include <stdio.h>
int main() {
int i;
printf("Enter an integer :");
scanf("%d",&i);
return 0;
}
in this program, it's not letting me to use scanf. It says, "Clang-Tidy: 'scanf' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead"
请先登录再写评论。