菜鸟关于输出中文的与输入的问题
程序的输入部分如下:#include <stdio.h>
#include <math.h>
void main()
{
double t1,t2,t3,t4,t5,t6,t7,t8,k1,k2,k3,k4,k5,k6,k7,k8,D0,D1,D2,D3,D4,D5,D6,D7,D8,Da,U1,U2,U3,U4,U5,U6,U7,U8,U,r1,r2,r3,r4,r5,r6,r7,r8,m1,m2,m3,m4,m5,m6,m7,m8,m,f0,f1,f2,f3,f4,f5,f6,f7,f8,ra,ka;
printf("请输入立管各层的厚度t1-t8\n");
scanf("t1=%lf,t2=%lf,t3=%lf,t4=%lf,t5=%lf,t6=%lf,t7=%lf,t8=%lf\n",&t1,&t2,&t3,&t4,&t5,&t6,&t7,&t8);
printf("请输入立管各层的导热系数k1-k8\n");
scanf("k1=%lf,k2=%lf,k3=%lf,k4=%lf,k5=%lf,k6=%lf,k7=%lf,k8=%lf\n",&k1,&k2,&k3,&k4,&k5,&k6,&k7,&k8);
printf("请输入立管各层的不同材料的密度r1-r8\n");
scanf("r1=%lf,r2=%lf,r3=%lf,r4=%lf,r5=%lf,r6=%lf,r7=%lf,r8=%lf\n",&r1,&r2,&r3,&r4,&r5,&r6,&r7,&r8);
printf("请输入立管的直径D1和D6\n");
scanf("D1=%lf,D6=%lf\n",&D1,&D6);
printf("请输入立管的最内层和最外层的温度f0和f8\n");
scanf("f0=%lf,f8=%lf",&f0,&f8);
现在程序能够运行,但是在运行“请输入立管各层的厚度t1-t8”之后输入t1-t8的值以后,按回车键还没有运行下面的“请输入立管各层的导热系数k1-k8”,按了很多次回车键还是一直让接着输入,如下图所示:
请高手解决一下,万分感谢!