#includesbit sc1=P0^1;sbit sc2=P0^2;unsigned int i,o,j,k,z;unsigned char h_table[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}; //从上到下unsigned char l_table[]={/*-- 调入了一幅图像:这是您新建的图像 --*//*-- 宽度x高度=8x24 --*
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/29 14:53:22
![#includesbit sc1=P0^1;sbit sc2=P0^2;unsigned int i,o,j,k,z;unsigned char h_table[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}; //从上到下unsigned char l_table[]={/*-- 调入了一幅图像:这是您新建的图像 --*//*-- 宽度x高度=8x24 --*](/uploads/image/z/4820468-68-8.jpg?t=%23includesbit+sc1%3DP0%5E1%3Bsbit+sc2%3DP0%5E2%3Bunsigned+int+i%2Co%2Cj%2Ck%2Cz%3Bunsigned+char+h_table%5B%5D%3D%7B0xfe%2C0xfd%2C0xfb%2C0xf7%2C0xef%2C0xdf%2C0xbf%2C0x7f%7D%3B+%2F%2F%E4%BB%8E%E4%B8%8A%E5%88%B0%E4%B8%8Bunsigned+char+l_table%5B%5D%3D%7B%2F%2A--+%E8%B0%83%E5%85%A5%E4%BA%86%E4%B8%80%E5%B9%85%E5%9B%BE%E5%83%8F%EF%BC%9A%E8%BF%99%E6%98%AF%E6%82%A8%E6%96%B0%E5%BB%BA%E7%9A%84%E5%9B%BE%E5%83%8F+--%2A%2F%2F%2A--+%E5%AE%BD%E5%BA%A6x%E9%AB%98%E5%BA%A6%3D8x24+--%2A)
#includesbit sc1=P0^1;sbit sc2=P0^2;unsigned int i,o,j,k,z;unsigned char h_table[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}; //从上到下unsigned char l_table[]={/*-- 调入了一幅图像:这是您新建的图像 --*//*-- 宽度x高度=8x24 --*
#include
sbit sc1=P0^1;
sbit sc2=P0^2;
unsigned int i,o,j,k,z;
unsigned char h_table[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}; //从上到下
unsigned char l_table[]={/*-- 调入了一幅图像:这是您新建的图像 --*/
/*-- 宽度x高度=8x24 --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x3C,0x5A,0x99,0x18,0x18,0x18,0x18,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}; //从左到右
void main()
{
\x09while(1)
\x09{\x09
\x09 z=10;
\x09 while(z--)
\x09 {
\x09\x09\x09for(i=0;i
#includesbit sc1=P0^1;sbit sc2=P0^2;unsigned int i,o,j,k,z;unsigned char h_table[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}; //从上到下unsigned char l_table[]={/*-- 调入了一幅图像:这是您新建的图像 --*//*-- 宽度x高度=8x24 --*
程序应该是不完整的
第一句j=k是在while(z--)里的,那就是说每次z减一,都把k赋给j
第二句j=k是在while(1)里的,此时z循环已经结束了,每次循环都把k加1(不能>26),然后把k赋给j
问题在于j和k都是啥也没干
你说的j++,j=k,程序里是k++,k=j啊.j++就是j加1的意思,j=k就是把k的值赋给j