Hi,
I have one string as below and would like to change the content one by one. I tried in this way but it's not successed.
The console output is:Code:unsigned char newtime[7]; for (x=7; x>0; x--) { sprintf (newtime[x-1], "%d", x); printf ("newtime[%d] %d\n",x, newtime[x-1]); }
newtime[6] 0
newtime[5] 0
newtime[4] 0
newtime[3] 0
newtime[2] 0
newtime[1] 0
newtime[0] 0
Where's the problem and what should do?
Thanks.



LinkBack URL
About LinkBacks



