cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
first program not working!
first program not working!
Mar 10, 2011 at 7:00pm UTC
DeadOverclock
(28)
ive been reading the tuts on this website and i made my first program but it doesnt work! here iz my program
1
2
3
4
#include <cstdlib>
int
main(){ cout<<
"my fost program!"
<<endl; }
it says sumthing about cout not being defined and endl not being defined?
Mar 10, 2011 at 7:00pm UTC
Zhuge
(4664)
The "cstdlib" header is not what you want. Use "iost
r
eam" instead.
Last edited on
Mar 10, 2011 at 7:05pm UTC
Mar 10, 2011 at 7:03pm UTC
DeadOverclock
(28)
still doesnt work :(
Mar 10, 2011 at 7:03pm UTC
filipe
(1165)
You'll need to add "using namespace std;" after the include, though.
EDIT: it's "iost
r
eam".
Last edited on
Mar 10, 2011 at 7:03pm UTC
Mar 10, 2011 at 7:05pm UTC
DeadOverclock
(28)
it works! thanks fili!
Topic archived. No new replies allowed.