欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136
標題:
哪里錯了error C267: 'matrix_showcol': requires ANSI-style prototype
[打印本頁]
作者:
莫ikun
時間:
2023-10-15 13:24
標題:
哪里錯了error C267: 'matrix_showcol': requires ANSI-style prototype
#include <regx52.h>
#include"matrix.h"
unsigned char code donghua[]=
{
0x18,0x18,0x3D,0x5A,0x98,0x28,0x28,0x28,
0x5A,0x5A,0x3C,0x18,0x18,0x28,0x18,0x08,
0x30,0x18,0x3C,0x1C,0x18,0x18,0x18,0x08,
0x30,0x98,0x7C,0x18,0x18,0x28,0x18,0x08,
0x10,0x18,0x3C,0x3C,0x18,0x28,0x28,0x08,
0x30,0x18,0x3C,0x3C,0x18,0x24,0x24,0x44,
0x30,0x18,0x3C,0x38,0x18,0x28,0x24,0x44,
0x18,0x0C,0x1E,0x1C,0x0C,0x14,0x24,0x44,
0x00,0x30,0x18,0x3C,0x1C,0x38,0x28,0x44,
0x00,0xC0,0x60,0xF0,0xF0,0x30,0x48,0x44,
0x00,0x30,0x18,0x3C,0x1C,0x38,0x28,0x44,
0x18,0x0C,0x1E,0x1C,0x0C,0x14,0x24,0x44,
0x00,0x30,0x18,0x3C,0x1C,0x38,0x28,0x44,
0x00,0xC0,0x60,0xF0,0xF0,0x30,0x48,0x44,
0x00,0x30,0x18,0x3C,0x1C,0x38,0x28,0x44,
0x18,0x0C,0x1E,0x1C,0x0C,0x14,0x24,0x44,
0x00,0x30,0x18,0x3C,0x1C,0x38,0x28,0x44,
0x00,0xC0,0x60,0xF0,0xF0,0x30,0x48,0x44,
0x00,0x30,0x18,0x3C,0x1C,0x38,0x28,0x44,
0x18,0x0C,0x1E,0x1C,0x0C,0x14,0x24,0x44,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
};
int main()
{
unsigned char i,offset,count=0;
void matrix_init();
while(1)
{
for(i=0;i<8;i++)
{
matrix_showcol(i,donghua[i+offset]);
}
count++;
if(count>40)
{
count=0;
offset+=8;
if(offset>160)
{offset=0;}
}
}
main.c(2): warning C318: can't open file 'matrix.h'
main.c(40): warning C206: 'matrix_showcol': missing function-prototype
main.c(40): error C267: 'matrix_showcol': requires ANSI-style prototype
Target not created.
Build Time Elapsed: 00:00:00
作者:
phbmxd
時間:
2023-10-15 15:08
看樣子是matrix.h沒有加入到項目中
作者:
Hephaestus
時間:
2023-10-15 15:30
問題在第一個錯誤,后面都是連鎖反應,解決了h文件找不到的問題,后面都會迎刃而解。h文件在哪里除了你別人都不可能知道。
作者:
npn
時間:
2023-10-15 18:18
你要將頭文件 matrix.h 里的代碼貼出來,問題才可以解決。
歡迎光臨 (http://www.raoushi.com/bbs/)
Powered by Discuz! X3.1