fork download
  1. void Dal_TX(unsigned char Q)
  2.  
  3. {
  4.  
  5. unsigned char Buf_X[4];
  6.  
  7. unsigned int i;
  8.  
  9. RI=0;//²M°£±µ¦¬
  10.  
  11. Buf_X[0]=(Q/1000)+0x30; //千位
  12.  
  13. Buf_X[1]=(Q%1000)/100+0x30; //百位
  14.  
  15. Buf_X[2]=((Q%1000)%100)/10+0x30; //十位
  16.  
  17. Buf_X[3]=((Q%1000)%100)%10+0x30; //個位
  18.  
  19.  
  20.  
  21. for(i=0;i<4;i++)
  22.  
  23. {
  24.  
  25. SBUF=Buf_X[i];
  26.  
  27. while(TI==0);
  28.  
  29. TI=0;
  30.  
  31. }
  32.  
  33. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'Dal_TX':
prog.c:9:2: error: 'RI' undeclared (first use in this function)
  RI=0;//²M°£±µ¦¬
  ^
prog.c:9:2: note: each undeclared identifier is reported only once for each function it appears in
prog.c:25:3: error: 'SBUF' undeclared (first use in this function)
   SBUF=Buf_X[i];
   ^
prog.c:27:9: error: 'TI' undeclared (first use in this function)
   while(TI==0);
         ^
stdout
Standard output is empty