主题:请教!这段代码超简单~可是为什么编译不过
#inculd<iostream>
using namespace std;
int main()
{
cout<<"This"<<"is";
cout<<"a"<<"C++";
cout<<"program."<<endl;
return0;
}
编译报错
first.cpp:1:2: error: invalid preprocessing directive #inculd
first.cpp: In function 'int main()':
first.cpp:5: error: 'cout' was not declared in this scope
first.cpp:7: error: 'endl' was not declared in this scope
first.cpp:8: error: 'return0' was not declared in this scope
我用的是DJGPP
刚刚学习C++希望大家多指教!
using namespace std;
int main()
{
cout<<"This"<<"is";
cout<<"a"<<"C++";
cout<<"program."<<endl;
return0;
}
编译报错
first.cpp:1:2: error: invalid preprocessing directive #inculd
first.cpp: In function 'int main()':
first.cpp:5: error: 'cout' was not declared in this scope
first.cpp:7: error: 'endl' was not declared in this scope
first.cpp:8: error: 'return0' was not declared in this scope
我用的是DJGPP
刚刚学习C++希望大家多指教!