By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,131 Members | 1,867 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,131 IT Pros & Developers. It's quick & easy.

cannot open the 'iostream.h' file

P: 1
I'm not sure if this forum is the right place to post this question, but here it goes.

I am trying to compile a C++ file, and everytime I do, the 'command prompt' window says that it cannot open the 'iostream.h' file. 'iostream.h' is just something which the book I'm learning with said to type into the C++ template. Can you explain what all this means? Thanks.

AH
Mar 9 '07 #1
Share this Question
Share on Google+
3 Replies


P: 93
I'm not sure if this forum is the right place to post this question, but here it goes.

I am trying to compile a C++ file, and everytime I do, the 'command prompt' window says that it cannot open the 'iostream.h' file. 'iostream.h' is just something which the book I'm learning with said to type into the C++ template. Can you explain what all this means? Thanks.

AH
Try <iostream.h> or, check with
[code]

#include <iostream>
using namespace std;
Mar 9 '07 #2

P: 17
What r the header files that u are binding with ur source code file?U need to add the stdio.h header file to ur source code...
Mar 9 '07 #3

P: 94
What r the header files that u are binding with ur source code file?U need to add the stdio.h header file to ur source code...
Nope,
it depends on what you are going to use
for example
Expand|Select|Wrap|Line Numbers
  1. #include <iostream>
  2. #include <string>  // For using strings
  3. #include <fstream> // For file input/output
  4.  
  5. using namespace std;
  6. int main(){
  7.      return 0;
  8. }
  9.  
That's basically it ;-)
Mar 9 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.