标题:
error C100: unprintable character 0xA3 skipped Keil C51 c语言编译错误
[打印本页]
作者:
1484068565
时间:
2020-4-19 23:58
标题:
error C100: unprintable character 0xA3 skipped Keil C51 c语言编译错误
#include<reg51.h>
#include<stdio.h>
#define uint unsigned int
char data a[32]={1,3,9,2,17,4,11,6,5,20,100,64,21,14,79,35,92,7,91,23,65,16,13,18,18,73,65,101,27,19,62,69};
uint i _at_ 0x55;
void DELAYMS(uint ms)
{
char t;
while(ms--)for(t=0;t<120;t++);
}
void main()
{
SP=0x60;
SCON=0x52;
TMOD=0x20;
TH1=0xff;
TR1=1;
for(i=0;i<32;i++)
{
printf("it is:%d now",a[ i]);
DELAYMS(20000);
}
while(1);
}
红色语句在编译的时候,出现了错误提示:
simlab3.c(18): error C100: unprintable character 0xA3 skipped
simlab3.c(18): error C100: unprintable character 0xBB skipped
这是为啥,这是我第一个51单片机c语言编程,求指教。
作者:
man1234567
时间:
2020-4-20 11:21
如无意外,是程序中不合适的位置出现了中文字符。
作者:
f556
时间:
2020-4-20 14:32
printf("it is:%d now",a[ i]); 有错误,把"[ "空格删除改成下句
printf("it is:%d now",a[i]);
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1