标题:这个单片机程序的提示什么意思?求高手指点一下,使之编译成功。谢谢!
只看楼主
神话嵌入式
Rank: 1
等 级:新手上路
帖 子:48
专家分:0
注 册:2014-10-27
结帖率:58.33%
 问题点数:0 回复次数:0 
这个单片机程序的提示什么意思?求高手指点一下,使之编译成功。谢谢!
#include<reg51.h>

 sbit P32=P3^2;

 void Delay(unsigned int i)                 //延时程序
 {
     unsigned int j;

    for(;i>0;i--)
    {
        for(j=0;j<125;j++)
        {
            ;
        }
    }
 }
 void main(void)
 {
     unsigned char cout;                 //定义变量cout

    while(1)
    {                              将将
        P1=cout;
        
        while(P32)  ;                       //键按下等待,等待P32 为0
        
        while(!P32)  ;                    //等待键放开,等待P32为1
        
        Delay(10);                         //延时10s
        
        cout++;                            //计数值加1                                                      
    }
 }
提示:
编译 COUNT1.c ...
COUNT1.C(22): 错误 C100: unprintable character 0xBD skipped
COUNT1.C(22): 错误 C100: unprintable character 0xAB skipped
COUNT1.C(22): 错误 C100: unprintable character 0xBD skipped
COUNT1.C(22): 错误 C100: unprintable character 0xAB skipped
COUNT1.C(31): 错误 C100: unprintable character 0xBC skipped
COUNT1.C(31): 错误 C100: unprintable character 0xC6 skipped
COUNT1.C(31): 错误 C100: unprintable character 0xCA skipped
COUNT1.C(31): 错误 C100: unprintable character 0xD6 skipped
COUNT1.C(31): 错误 C100: unprintable character 0xB5 skipped
COUNT1.c - 9 个错误, 0 个警告。
是语法错误还是建立工程或文件有问题?
搜索更多相关主题的帖子: 单片机程序 include 
2015-01-10 22:42



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-440954-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.891756 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved