有段时间没有打开,现在打开一段矩阵点灯的程序如此报错,该如何解决
这是源码
#include <reg52.h>
#include <intrins.h>
void Delay(unsigned int xms)
{
unsigned int i,j;
for(i=xms;i>0;i--)
for(j=110;j>0;j--);
}
void main()
{
undefined
while(1)
{
P2 = 0x78;
Delay(1);
P2 = 0xB4;
Delay(1);
P2 = 0xD2;
Delay(1);
P2 = 0xE1;
Delay(1);
}
}
这是报错的
compiling gyj.c...
gyj.c(1): warning C318: can't open file 'iostream'
gyj.c(2): error C309: bad or missing filename
gyj.c(2): warning C318: can't open file ''
Target not created.


这是源码
#include <reg52.h>
#include <intrins.h>
void Delay(unsigned int xms)
{
unsigned int i,j;
for(i=xms;i>0;i--)
for(j=110;j>0;j--);
}
void main()
{
undefined
while(1)
{
P2 = 0x78;
Delay(1);
P2 = 0xB4;
Delay(1);
P2 = 0xD2;
Delay(1);
P2 = 0xE1;
Delay(1);
}
}
这是报错的
compiling gyj.c...
gyj.c(1): warning C318: can't open file 'iostream'
gyj.c(2): error C309: bad or missing filename
gyj.c(2): warning C318: can't open file ''
Target not created.
