I was having some problem for my first C program:
#include "stdafx.h"
#include <stdio.h>
int main()
{
float farenheit, celsius;
printf("Enter the temperature in degree F: ");
scanf("%f", &farenheit);
celsius = ((float)5 / 9) * (farenheit - 32);
printf("Converted degree in C: %f", celsius);
return 0;
}
And in my stdafx.c file, I included the no secure warning:
#include "stdafx.h"
#define _CRT_SECURE_NO_WARNINGS
However, when I tried to run the program, it threw me this error message:
scanf is unsafe. Consider using scanf_s instead. To disable deprecation, use the CRT_SECURE_NO_WARNNGS.
I thought I already included it into the stdafx.c file?