C programing: scanf dont read :(
#2

well, you better use gets instead of scanf
you can use simply
Код:
float a,b,c,x1,x2,D;  
  gets(a); 
  gets(b);
  gets©;
  printf("readed:\na= %f\nb= %f\nc= %f\n",&a,&b,&c);
and if you still like to use scanf you have to do
Код:
float a,b,c,x1,x2,D;  
  scanf("%f",&a); 
  scanf("%f",&b); 
  scanf("%f",&c); 
  printf("readed:\na= %f\nb= %f\nc= %f\n",&a,&b,&c);
hope that help you
Reply


Messages In This Thread
C programing: scanf dont read :( - by oggylt - 08.04.2010, 16:22
Re: C programing: scanf dont read :( - by m0niSx - 09.04.2010, 20:58
Re: C programing: scanf dont read :( - by oggylt - 09.04.2010, 23:07
Re: C programing: scanf dont read :( - by m0niSx - 10.04.2010, 14:25

Forum Jump:


Users browsing this thread: 2 Guest(s)