Problem in header files

i hav newly installed turbo c++ 3.0 in my windows 7 OS...
it opens fine but when ever i write a program for example say this :
#include<stdio.h>
void main()
{
printf(" Hello ");
getch();
}
and compile it, error reads as :::
' Unable to open include file " STDIO.H " '
hence it doesn't read printf also....
what do i do ???
how to include header files as in here ??
you could use cout and do #include <iostream> and then to pause the program you could do a cin.ignore() statement... still not really sure how to use the cin ignore though. I normally just do system("pause");, which from what other people have said is a bad method to use, lol.
i am saying that after installing turbo c++ and opening it to write a program, i usually mention the required headers but see the error it says unable to include.....the header file. the program is not using the header( not detecting it ....... unable to include ) . how to remove this difficulty....pls help..
try using '#include <stdio>' instead of '#include <stdio.h>'
Hi,

you can use cout

example:

#include <iostream>

cout <<"Hello" << endl;

It makes more sense for C++
closed account (z05DSL3A)
...turbo c++ 3.0 in my windows 7 OS... Unable to open include file " STDIO.H "

Probably haven't set the paths correctly.

This may help:

How to install Turbo C++ on Windows 7
http://blog.bestsoftware4download.com/2010/02/how-to-install-turbo-c-on-windows-7/

How to install Turbo C++ on Windows 7 64bit
http://blog.bestsoftware4download.com/2010/02/how-to-install-turbo-c-on-windows-7-64bit/

Or just get a modern C++ compiler :0)
Last edited on
In C++, C headers are prefixed with a c. So you want <cstdio>. But, as firix said, that's still C style code. You should use <iostream> and get used to it.
Last edited on
Uninstall Turbo c++ and install Visual C++ 2010 Express.
+1 to Return 0

Turbo C++ is ancient.
none of the header file is getting included :(
closed account (z05DSL3A)
Why do you want to use such an old IDE/compiler anyway?
brother i'm being taught about turbo c++ in my institute that's why !

please anyone give some link where to download Turbo C++ for my windows 32 bit OS.
i think i will start installing allover again ..
Manmay wrote:
brother i'm being taught about turbo c++ in my institute that's why !


I have to ask what institute because any university/college that is requiring it would concern me.
am in india State - Orissa and my institute is NIT( National institute of Technology ), Rourkela.
but why is it needed to u @Return 0 ??
Because you're using a very, very old IDE. It's from 1991!
closed account (z05DSL3A)
People are concerned because TC3 has a pre-Standard C++ compiler. If you do have to use this then expect a lot a 'noise' when asking questions, noise such as
You should use #include <iostream> instead of #include <iostream.h> .

This is all perfectly good advice but will not work for TC3 and will not necessarily go anyway to solving your problem.

please anyone give some link where to download Turbo C++ for my windows 32 bit OS.
http://www.top4download.com/turbo-c-/aklqwuba.html

Good luck.
Last edited on
There is no problem of IDE.Only problem you have got is that you have to set the path of directories
correctly.just set correct path for directories it will work 100%
.......................................................................
http://www.cprogramming.tk
Topic archived. No new replies allowed.