Tag: 四倍精度

scanf的quadmath和参数类型

我使用 。 使用哪种参数类型可以正确读取输入? 如果我使用双倍,它看起来像: printf(“enter 3 values for s, t and mt:\n”); scanf(“%lf %lf %lf”, &s, &t, &mt); printf(“%lf %lf %lf\n”, s, t, mt); 我尝试了不同的可能性,而不是“l”,例如: scanf(“%Qf %Qf %Qf”, &s, &t, &mt); 甚至没有 scanf(“%f %f %f”, &s, &t, &mt); 但是我收到了一个错误。