AD读的电压值怎么比较?void main(){ lcd_init (); ad_init (); while(1) { ad_start(); while(int
AD读的电压值怎么比较?void main(){\x05\x05lcd_init ();\x05ad_init ();\x05while(1)\x05{\x05 ad_start();\x05 while(intr==1);\x05 ad_read();\x05 intr=0;\x05 \x05 qian=temp/51; //千位数\x05 bai =temp%51*10/51; //百位数shi =temp%51*10%51*10/51; //十位数...
cpp #include<iostream>#include<cstdio>#include<cmath>usingnamespacestd;doublea,b,c,x1,x2,delta;intmain(){cin>>a>>b>>c;delta=b*b-4*a*c;if(delta<0)cout<<"No answer!";elseif(delta>0)printf("x1=%.5lf;x2=%.5lf",min((-b-sqrt(delta))/(2*a),(-b+sqrt(delta))/(2*a)...
为什么用^,换其他符号试试看,例如下滑线 _ ,至于延时可以加在你现在的中断内只要不超过那个中断时间
}voidupdate(int&i,intj,intl,intr,intL,intR,intv){if(l > R || r < L)return; i = ++top; T[i] = T[j];intm = l + r >>1;if(L <= l && r <= R) T[i].lz += v;else{update(lc, Lc, l, m, L, R, v);update(rc, Rc, m +1, r, L, R, v);}maintain(i);...