i am encountering 2 errors upon building when using the following code
#include
#include "stdafx.h"
int main()
{
cout<<"*"<
cout<<"**"<
cout<<"***"<
cout<<"****"<
cout<<"*****"<
cout<<"****"<
cout<<"***"<
cout<<"**"<
cout<<"*"<
return 0;
}
any ideas what i am doing wrong? i am getting these errors
error C2065: 'endl' : undeclared identifier and
error C2065: 'cout' : undeclared identifier
is there a special thing i need to "#include" ? apparently, using namespace std; is useless with C++Express 2005. i dunno?
2007-03-12
13:59:56
·
7 answers
·
asked by
eyefixguitars
1
in
Computers & Internet
➔ Programming & Design
in the version i am using, it will not allow using namespace std;
also, it gave me t stdafx.h when i started my new file. when i modified it, it gave MOREE errors than i had to begin with
2007-03-12
18:16:38 ·
update #1