C指针测试程序
来源:互联网 发布:js怎么查看对象的内容 编辑:程序博客网 时间:2024/04/29 23:57
typedef struct {
unsigned short width;
unsigned short height;
unsigned char (*pfont)[7];
}T_FONT;
unsigned char asci_1206[][7] = {
{1, 2, 3, 4, 5, 6, 7},
{3, 5, 6, 7, 8, 9, 10}
};
unsigned char asci_1608[][9] = {
{1, 2, 3, 4, 5, 6, 7, 8, 9},
{3, 5, 6, 7, 8, 9, 10, 11, 12}
};
T_FONT m_font[] = {
{7, 0x07, asci_1206},
{7, 0x07, asci_1608}
};
unsigned char abc;
void main(void)
{
unsigned char i;
P2 = 0xFF;
P1 = 0xFF;
Init_Timer0();
abc = m_font[0].pfont[0][6]; // 7
abc = m_font[0].pfont[1][6]; // 10
abc = m_font[1].pfont[1][7]; // 9
while(1)
{
//KeyRead();
//KeyProc1();
//KeyProc2();
Delay_ms(100);
LED1_TOGGLE();
}
}
unsigned short width;
unsigned short height;
unsigned char (*pfont)[7];
}T_FONT;
unsigned char asci_1206[][7] = {
{1, 2, 3, 4, 5, 6, 7},
{3, 5, 6, 7, 8, 9, 10}
};
unsigned char asci_1608[][9] = {
{1, 2, 3, 4, 5, 6, 7, 8, 9},
{3, 5, 6, 7, 8, 9, 10, 11, 12}
};
T_FONT m_font[] = {
{7, 0x07, asci_1206},
{7, 0x07, asci_1608}
};
unsigned char abc;
void main(void)
{
unsigned char i;
P2 = 0xFF;
P1 = 0xFF;
Init_Timer0();
abc = m_font[0].pfont[0][6]; // 7
abc = m_font[0].pfont[1][6]; // 10
abc = m_font[1].pfont[1][7]; // 9
while(1)
{
//KeyRead();
//KeyProc1();
//KeyProc2();
Delay_ms(100);
LED1_TOGGLE();
}
}
- C指针测试程序
- c 二维指针测试
- C指针强化测试
- C语言程序 指针
- c指针简单测试一
- c指针简单测试一
- C测试小程序
- C---测试程序1
- C程序中函数指针
- 【c程序】数组与指针
- 道指令函数指针程序测试
- 标准C/C++测试程序
- c语言测试程序执行时间
- [C#]加法速度测试程序
- c语言测试程序执行时间
- 测试C程序运行时间
- c语言测试程序执行时间
- 关于C指针和数据类型的测试
- iis本地发布网站
- Java 使用EE配置相关问题总结
- 让input框从右向左显示的方法
- 了解数字高清电视
- delphi数据集与记录
- C指针测试程序
- error C2065: “endl”: 未声明的标识符
- static
- 如何在自己创建的类中调用 _default页的控件内容
- 排序之快速排序
- IP合法性检测
- C++中的 Round(),floor(),ceil()
- hdu 4777 Rabbit Kingdom (2013acmicpc亚洲区域赛杭州站 H)
- DB2联合数据库(Federated Database)配置实例