標題:
[求助]51c
[打印本頁]
作者:
xxwho
時間:
2009-5-18 21:31
標題:
[求助]51c
為什么我這個程序循環(huán)一次后,還繼續(xù)循環(huán)啊,for不是循環(huán)完就結(jié)束了么 #include
#include
#define uint unsigned int uint a,i; sbit beep=P2^1; void delay(uint); void main() { a=0xfe; delay(500); for(i=0;i<8;i++) {P0=a; //beep=0; a=_crol_(a,1); delay(500); //beep=1; } delay(1000); } void delay(uint z) { uint x,y; for(x=z;x>0;x--) for(y=110;y>0;y--); }
作者:
xxwho
時間:
2009-5-18 21:33
怎么亂碼了
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1