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..
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.
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.
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