SurvivorTiger
Programmer
Hi everyone,
This is just a simple win32 console application. When i try to build this project i get the following message:
fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
Here is my code:
Can anyone tell me what's wrong?
Thanks in advance.
AIM: survivertiger
This is just a simple win32 console application. When i try to build this project i get the following message:
fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
Here is my code:
Code:
/*Conversion.c -- Currency conversion*/
#include<stdio.h>
int main(void)
{
float dollar; /* US dollar amount */
float canada; /* Canada equivalent */
float britian; /* Britian equivalent */
float euro; /* Euro equivalent */
float turkey; /* Turkey equivalent */
float australia; /* Australia equivalent */
printf("Currency Conversion\n");
printf("Get the currencies for Canada, Britian, Euro, Tureky,Australia dollars\n");
printf("Please enter your amount in US dollars: $");
/*get input from the user*/
scanf("%f", &dollar);
/*dollar amount is multiplied by the currency conversion amount*/
canada = dollar * 1.4579811639700555421395798116397;
britian = dollar * .26409373554653373760213782825428;
euro = dollar * 0.55427337701012507444907683144729;
turkey = dollar * .388889000000;
australia = dollar * 1.6679581557535838822161952731499;
printf("Your dollar amount is worth $%.2f. in Canada\n", canada);
printf("Your dollar amount is worth $%.3f. in Britian\n", britian);
printf("Your dollar amount is worth $%.4f. in Euro\n", euro);
printf("Your dollar amount is worth $%.5f. in Turkey\n", turkey);
printf("Your dollar amount is worth $%.6f. in Australia\n", australia);
return 0;
}
Can anyone tell me what's wrong?
Thanks in advance.
AIM: survivertiger