So why not do what the message says? Change iostream.h to iostream. Also don't forget that "cout" is from the std:: namespace, so either use std::cout or put a using namespace std; at the beginning of your code.
also read:
Void main
Code tags
Nick Evan
Cold-a$$ donkey
10,261 posts since Oct 2006
Reputation Points: 4,155
Solved Threads: 416
Skill Endorsements: 22
Yes, change #include <iostream.h> to #include <iostream> and put the instruction using namespace at the top of your code or use the std:: specifier for each object (in namespace std) you want to use :) ...
By the way: avoid using void main it's unnecessary look here: http://cppdb.blogspot.com/ ...
mvmalderen
Posting Maven
2,612 posts since Feb 2009
Reputation Points: 2,221
Solved Threads: 280
Skill Endorsements: 36
Also just an advice,
why not use codeblocks instead of hard compiling hand to hand?
It is here:
www.codeblocks.org
Just MHO
Stefano Mtangoo
Senior Poster
3,731 posts since Jun 2007
Reputation Points: 462
Solved Threads: 396
Skill Endorsements: 0
Another advice: I think the OP's problem is already solved, BTW did someone actually notice that this thread is more than one month old?
mvmalderen
Posting Maven
2,612 posts since Feb 2009
Reputation Points: 2,221
Solved Threads: 280
Skill Endorsements: 36
Stefano Mtangoo
Senior Poster
3,731 posts since Jun 2007
Reputation Points: 462
Solved Threads: 396
Skill Endorsements: 0