大家看看這個(gè)程序,
#include<reg52.h>
#include<math.h>
#include"DISPLAY.h"
void main()
{
float j=4;
j=sqrt(j);
Display_show(j);
}
顯示正常,是2
但是下面這個(gè)程序就不能正常顯示了,麻煩大家?guī)蛶兔?看看是什么原因
#include<reg52.h>
#include<math.h>
#include"DISPLAY.h"
void main()
{
int i=4;
float j;
j=(float)i;
j=sqrt(j);
Display_show(j);
}
歡迎光臨 (http://www.torrancerestoration.com/bbs/) | Powered by Discuz! X3.1 |