<分区>
我收到错误 scanf: 未链接浮点格式 在读取以下结构的“信息”值时。
struct node
{
float info; struct node *next;
}*start;
在主函数中
void main()
{
struct node *temp;
temp = (struct node*)malloc(sizeof(struct node));
printf("enter data = ");
scanf("%f",&temp->info);
}
它没有读取该 scanf 的任何值并从程序中出来。
如何解决这个问题?