一个C程序的小问题,
代码如下:#include <stdio.h>
void main()
{
#define KG_PER_POUND 0.4536;
double weight,kgn;
printf("请输入磅数:");
scanf("%f",&weight);
kgn=KG_PER_POUND*weight;
printf("相对应的千数为:&f",kgn);
}
报错为:
F:\VC++ 6.0编程代码\song\chen.c(10) : error C2100: illegal indirection
恳请各位高人指点一二,不胜感谢。