大家看看这个程序,
#include<reg52.h>
#include<math.h>
#include"DISPLAY.h"
void main()
{
float j=4;
j=sqrt(j);
Display_show(j);
}
显示正常,是2
但是下面这个程序就不能正常显示了,麻烦大家帮帮忙,看看是什么原因
#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.51hei.com/bbs/) | Powered by Discuz! X3.1 |