导航: 老古网→ 老古论坛→XMOS公共讨论区→XMOS开源项目区→单片机程序设计→嵌入式系统→广告区域→
→初学者:请教老古[欢喜游龙]

 *第3086篇: 初学者:请教老古

  
楼 主:欢喜游龙 2002年5月3日15:08
 初学者:请教老古
#pragma code symbols debug oe
#include <reg52.h>
#include <stdio.h>

void main()

{    typedef unsigned int uint;
    uint i=0;
    uint result;
/*13*/    P1^3  = 1;
/*14*/    P1^3  = 0;
    i++;
}

这是一个试验程序,为什么编译通不过?
*** ERROR C141 IN LINE 13 OF .\C51TEST.C: syntax error near '='
*** ERROR C141 IN LINE 14 OF .\C51TEST.C: syntax error near '='

  
第2楼:老古 2002年5月4日13:04
 注解要放在后面

>>>>>>对该主题发表你的看法

本主题贴数2,分页: [第1页]


[上一篇主题]:C51编程:寻低功耗单片机开发人员

[下一篇主题]:硬件:3CR3是什么东西?