I am having trouble with this program. It compiles, builds, and links but when I execute it I am having a problem inputing the double. Please help! MS Visual Studio 6.
Code:
#include <stdio.h>
#include <float.h>
int main()
{
int bookID, volumeOH, expectedEN;
int costPC;
char R, S, N, O;
printf ("*********************************************************\n");
printf ("WELCOME TO THE JLH05G BOOKSTORE ORDER ESTIMATION PROGRAM!\n");
printf ("*********************************************************\n");
printf ("\nPlease Enter The Books Cost Per Copy: \n");
scanf ("%d", &costPC);
printf ("\nPlease Enter The Book ID Number: \n");
scanf ("%d", &bookID);
printf ("\nPlease Enter The Volume On Hand: \n");
scanf ("%d", &volumeOH);
printf ("\nPlease Enter The Expected Enrollment: \n");
scanf ("%d", &expectedEN);
return 0;
}