C语言 if else 用法while(1) \x05 //infinite loop{if (DSK6414_DIP_get(0) ==0) DIP0pressed =1 ;else DIP0pressed = 0;if (DSK6414_DIP_get(1) ==0) DIP0pressed =1 ;else DIP1pressed = 0;if (DSK6414_DIP_get(2) ==0) DIP0pressed =1 ;else DIP2pressed = 0;}
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/03 16:35:39
![C语言 if else 用法while(1) \x05 //infinite loop{if (DSK6414_DIP_get(0) ==0) DIP0pressed =1 ;else DIP0pressed = 0;if (DSK6414_DIP_get(1) ==0) DIP0pressed =1 ;else DIP1pressed = 0;if (DSK6414_DIP_get(2) ==0) DIP0pressed =1 ;else DIP2pressed = 0;}](/uploads/image/z/1582046-62-6.jpg?t=C%E8%AF%AD%E8%A8%80+if+else+%E7%94%A8%E6%B3%95while%281%29+%5Cx05+%2F%2Finfinite+loop%7Bif+%28DSK6414_DIP_get%280%29+%3D%3D0%29+DIP0pressed+%3D1+%3Belse+DIP0pressed+%3D+0%3Bif+%28DSK6414_DIP_get%281%29+%3D%3D0%29+DIP0pressed+%3D1+%3Belse+DIP1pressed+%3D+0%3Bif+%28DSK6414_DIP_get%282%29+%3D%3D0%29+DIP0pressed+%3D1+%3Belse+DIP2pressed+%3D+0%3B%7D)
C语言 if else 用法while(1) \x05 //infinite loop{if (DSK6414_DIP_get(0) ==0) DIP0pressed =1 ;else DIP0pressed = 0;if (DSK6414_DIP_get(1) ==0) DIP0pressed =1 ;else DIP1pressed = 0;if (DSK6414_DIP_get(2) ==0) DIP0pressed =1 ;else DIP2pressed = 0;}
C语言 if else 用法
while(1) \x05 //infinite loop
{
if (DSK6414_DIP_get(0) ==0) DIP0pressed =1 ;
else DIP0pressed = 0;
if (DSK6414_DIP_get(1) ==0) DIP0pressed =1 ;
else DIP1pressed = 0;
if (DSK6414_DIP_get(2) ==0) DIP0pressed =1 ;
else DIP2pressed = 0;
}
请问这是一条条if else 自上而下执行的吗?...
while(1) \x05 //infinite loop
{
if (DSK6414_DIP_get(0) ==0) DIP0pressed =1 ;
else DIP0pressed = 0;
if (DSK6414_DIP_get(1) ==0) DIP1pressed =1 ;
else DIP1pressed = 0;
if (DSK6414_DIP_get(2) ==0) DIP2pressed =1 ;
else DIP2pressed = 0;
}
DIP1 DIP2忘改了...请问这是一条条if else 自上而下执行的吗?...
C语言 if else 用法while(1) \x05 //infinite loop{if (DSK6414_DIP_get(0) ==0) DIP0pressed =1 ;else DIP0pressed = 0;if (DSK6414_DIP_get(1) ==0) DIP0pressed =1 ;else DIP1pressed = 0;if (DSK6414_DIP_get(2) ==0) DIP0pressed =1 ;else DIP2pressed = 0;}
是的.配对的.