程序如下:1 R2 H/ o H' v2 t7 O- k/ X- {. T
#include <reg51.h>/ V; ~1 Z+ m2 L
sbit led=P0^0;$ W, P$ C% }3 k8 g" y. h
sbit led1=P0^1;
! x& y! ~! Q/ r! y& X sbit led2=P0^2;
$ g8 Q% Z' ^, V" p! W9 M3 n sbit led3=P0^3;
- H) f( h/ \$ z$ e1 r* M8 c sbit led4=P0^4;
$ `! F0 b7 D2 N$ Y8 H sbit led5=P0^5; 0 j5 l' L: A& r: o/ ]4 A
sbit led6=P0^6;; j% ~4 a" A, _+ ~
sbit led7=P0^7;
( f+ a5 c: ^8 m sbit ADDR0=P1^0;) Z* y) g& h. x$ V3 @
sbit ADDR1=P1^1;
/ h) D4 G! ~5 V sbit ADDR2=P1^2;% x a! j, n- U8 e. i: ]4 y v* L
sbit ADDR3=P1^3;
% t2 c+ W: P0 S4 p2 F) O sbit ENLED=P1^4;7 v' n' @7 l0 T2 O
main()
. F3 W2 s) x: T/ r c4 p { ADDR0=0;ADDR1=0;ADDR2=0;ADDR3=1;ENLED=0;( i/ q% w# Z( ]9 o4 k
while(1)- h" K# ?( r" z1 S1 ^# s
{ led=0;led1=0;led2=0;led3=0;led4=0;led5=0;led6=0;led7=0;
: E* m% K' e2 P }
$ V& ?1 q8 Y3 G, b. H2 H0 M }
0 W" d' k1 z$ {5 Z" E7 R2 P) w我想问while(1)是一个函数吗,他后面有{ }符号$ D4 `% H* R/ R
|