#include <stdio.h>
void InputData(void);
float CalcNetProfit(void);
void PrnOutput(float);
char sSalesperson[10];
float fTotalSales;
float fCostOfSales;
main()
{ float fNetProfit;
InputData();
fNetProfit=CalcNetProfit();
PrnOutput(fNetProfit);
return 0;
}
void InputData(void)
{
Printf("Enter your name: ");
scanf (" %s",sSalesperson);
printf("Enter your Total Sales: ");
scanf (" %f",&fTotalSales);
printf("Enter your Cost Of Sales: ");
scanf (" %f",&fCostOfSales);
return;
}
float CalcNetProfit(void)
{
float fNetProfit;
fNetProfit=fTotalSales-fCostOfSales;
return fNetProfit;
}
void PrnOutput(float fNetProfit)
{
printf("\n\nAuthor SALES REPORT 02/02/07");
printf("\nSalesperson: %-10s",sSalesperson );
printf("\nTotal : %9.2f",fTotalSales );
printf("\nCost Of Sales: %6.2f",fCostOfSales);
printf("\nNet Profit : %6.2f",fNetProfit);
return;
}
找了一晚上了,没找出哪的错来,刚学C语言,希望能指教一下。
提示是undefined symbol '_printf' in moudule NONAME.C
谢谢了