hi all
i wrote a code that is supposed to print the following on the screen
cars number=0
money=0
but when i run it i get
cars number=
money= 0
any solutions ?
the code
int i=0;
int x=0;
char itxt[16];
char xtxt[16];
void screen ()
{inttostr(x,xtxt);
inttostr(i,itxt);
Lcd_out(1,1,"cars number=");
Lcd_out_cp(itxt);
Lcd_out(2,1,"Money=");
Lcd_out_cp(xtxt);
}
thanks
i wrote a code that is supposed to print the following on the screen
cars number=0
money=0
but when i run it i get
cars number=
money= 0
any solutions ?
the code
int i=0;
int x=0;
char itxt[16];
char xtxt[16];
void screen ()
{inttostr(x,xtxt);
inttostr(i,itxt);
Lcd_out(1,1,"cars number=");
Lcd_out_cp(itxt);
Lcd_out(2,1,"Money=");
Lcd_out_cp(xtxt);
}
thanks