CCS C de glcd_text57() komutuyla integer nasıl yazılır? varsa başka komutta olur

Başlatan RoNNeZ, 13 Aralık 2014, 20:59:55

RoNNeZ

CCS C de glcd_text57() komutuyla integer nasıl yazılır? varsa başka komutta oloabilir. çünkü bir karşılaştırma durumundan sonra bu tamsayıları ekrana yazmam gerekiyor
kodlar:
#include <16f877A.h>
#include <stdlib.h>
#FUSES HS   
#use delay(clock=20000000)
#include <HDM64GS12.c>
#include <graphics.c>

int i=0;
//char x1[10]="",x2[20]="",x3[30]="",x4[40]="",x5[50]="",x6[60]="";
int16 x1=0,x2=0,x3=0,x4=0,x5=0,x6=0;
char x[]="ananı";

//sıralama(int16 sıra)
//{
   
//}
void main()
{
glcd_init(on);

x1=10;
x2=20;
x3=40;
x4=50;
x5=60;
x6=70;
//sıralama(x6);
   
   for(i=0;i=6;i++)
   {
      if(x6>x1)
      {
         x5=x4;x4=x3;x3=x2;x2=x1;x1=x6;
      }
      
      if(x6>x2)
      {
         x5=x4;x4=x3;x3=x2;x2=x6;
      }
      
      if(x6>x3)
      {
         x5=x4;x4=x3;x3=x6;
      }
      
      if(x6>x4)
      {
         x5=x4;x4=x6;
      }
      
      if(x6>x5)
      {
         x5=x6;
      }
         
   }

   
while(1)
{
glcd_init(on);
glcd_text57(10,0,x1,1,on);
glcd_text57(20,0,x2,1,on);
glcd_text57(30,0,x3,1,on);
glcd_text57(40,0,x4,1,on);
glcd_text57(50,0,x5,1,on);

delay_ms(1000);
}
}