Question:
my code::block doesn't have iostream.h file?
Samvid
2012-04-28 23:19:04 UTC
I have code::block with inbuilt minGW. When i was trying to do c++ problems it gave me error that iostream.h doesn't exit. I did check the folder where minGW was installed and i didn't find any iostream header file. Any idea what shall i do??

i did try various ways of including my header file like
#include
#include
#include "iostream.h"
#include "iostream"


but non of them works...
Four answers:
2012-04-29 00:17:57 UTC
"#include "

"#include "iostream""

These are the correct forms. The latter will, on most platforms, check the current directory as well as include paths passed to the compiler at compile time. Both of them will also check your system's include paths. Since you only want the iostream located in your system's include path, use #include .



iostream.h is a deprecated header file, if your compiler doesn't have it, then that suggests that you've selected a good compiler. If iostream can't be found, then ensure that your include paths are configured correctly. If you're using an IDE then you can usually set it through there, otherwise it will be set either in a configuration file or in your environmental variables.
2012-04-28 23:26:23 UTC
#include is the proper version to use. The header files are installed with the compiler. If you can't access the header file, then something probably went wrong with your installation. Consider reinstalling the code blocks IDE and mingw compiler.
2016-12-03 09:46:17 UTC
The Code::Blocks (actual GCC) way is the spectacular way, as that's special interior the ISO huge-unfold for C++. swifter C++ makes use of an old convention that's suitable for older compilers that don't help specific modern-day valuable aspects. conio.h isn't area of any huge-unfold yet is a proprietary Microsoft extension for DOS compilers. in case you incorporate that throughout your code your utility won't run on the different platform than DOS, OS/2 or homestead windows.
2012-04-28 23:19:59 UTC
Somebody asked something like that a few seconds ago. There was a smart answer for it too. I cant see it anyplace, but I bet you could search for it with the search section above here.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...