Problem in header files

Dec 11, 2010 at 6:32am
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 ??
Dec 12, 2010 at 7:17am
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.
Dec 14, 2010 at 7:12am
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..
Dec 14, 2010 at 12:49pm
try using '#include <stdio>' instead of '#include <stdio.h>'
Dec 14, 2010 at 1:14pm
Hi,

you can use cout

example:

#include <iostream>

cout <<"Hello" << endl;

It makes more sense for C++
Dec 14, 2010 at 1:24pm
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 Dec 14, 2010 at 1:24pm
Dec 14, 2010 at 3:03pm
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 Dec 14, 2010 at 3:12pm
Dec 14, 2010 at 3:09pm
Uninstall Turbo c++ and install Visual C++ 2010 Express.
Dec 14, 2010 at 3:57pm
+1 to Return 0

Turbo C++ is ancient.
Dec 15, 2010 at 4:45pm
none of the header file is getting included :(
Dec 15, 2010 at 4:47pm
closed account (z05DSL3A)
Why do you want to use such an old IDE/compiler anyway?
Dec 15, 2010 at 4:53pm
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 ..
Dec 15, 2010 at 4:56pm
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.
Dec 16, 2010 at 3:00am
am in india State - Orissa and my institute is NIT( National institute of Technology ), Rourkela.
but why is it needed to u @Return 0 ??
Dec 16, 2010 at 1:37pm
Because you're using a very, very old IDE. It's from 1991!
Dec 16, 2010 at 2:02pm
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 Dec 16, 2010 at 2:03pm
Dec 16, 2010 at 4:30pm
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.