Question:
iostream not found error in turbo c?
anonymous
1970-01-01 00:00:00 UTC
iostream not found error in turbo c?
Five answers:
llaffer
2013-03-29 17:34:28 UTC
If it's turbo C, then it's not Turbo C++, therefore you cannot use C++-specific programming with it. You can only program in C.
Slayerrrrrr
2013-03-29 21:21:34 UTC
Get Dev++ from bloodshed or a free visual studio version.

You're using the wrong compiler.
Sanved
2013-03-29 17:48:20 UTC
The problem might be one of the following -



1) iostream isn't included inside the package you just downloaded.

2) iostream is included but the program cant locate it. Just go in this folder - TC/include
husoski
2013-03-29 17:30:39 UTC
Turbo C++ hasn't been updated since the mid 1990s. In particular, it does not have a number of features and lacks many libraries introduced with the first international standard of the C++ language in 1998.



For a modern compiler plus a nice editor/debugger, like Turbo had, take a look at Code::Blocks.



http://www.codeblocks.org



That's 100% free and legal (unlike Turbo C++, unfortunately) and runs on just about any operating system (also, unlike Turbo C++). For Windows, be sure to download the Code::Blocks+MinGW combined bundle.



There is a free version of Visual C++ (called the Express version) for Windows XP and later, but that takes extra work to compiler a Standard C++ application. MS only supports templates for Microsoft-specific versions. It's a good compiler, and I use it, but the extra steps make it harder to use for first-time learners. (It also has some minor features which let it compile programs that it shouldn't, under the standard, making it hard to develop portable code.)

http://www.microsoft.com/visualstudio/eng/products/visual-studio-2010-express



With WIn7 or later, you can run the 2012 version.



If you MUST use Turbo C++, the following changes will convert very simple programs:

1. Change headers to add .h suffixes:

Standard . . . . . Turbo C++

. . . .

. . . . .

. . . . .

. . . .

[Other headers will be without the c prefix. These are C headers.]



2. Removing any "using" statements.



3. Convert C++ string variables to C char[] strings. Turbo doesn't have the C++ header.



4. Convert any vector<> types to arrays, if possible. Turbo doesn't have the C++ collections classes like , , and . The vector<> class is the most often used.



Edit: Thumbs up to llaffer for seeing the obvious. Yes, I forgot that Turbo C was the C-only compiler and that Turbo C++ was the C/C++ upgrade (later renamed "Borland C++" for the "professional" versions.)
The Wanderer
2013-03-29 10:15:36 UTC
have you tried this syntax for your include statement?



#include


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