Which turbo C++ is that? The ancient DOS version?
iostream.h
remember .h
cout<<
No std::
2007-06-13 06:03:59
·
answer #1
·
answered by Kasey C 7
·
0⤊
0⤋
Turbo C++ 3.0 for DOS is from 1991. That's sixteen *years* ago, long before C++ was even standardized as a language. Turbo C++ 3.0 predates Boris Yeltsin as Russian President. There's a whole lot of perfectly legal, standards compliant code that isn't going to work in that ancient monstrosity.
If you get a modern compiler, you'll find your problem has disappeared. For windows, consider MSVS 2k5 express or Borland C++ Builder; for unix, use whatever's already installed, probably GCC. (Given that you're using a DOS compiler, extensive unix conversation seems wasted.)
Free, standards compliant, and packaged with a first class debugger:
http://msdn.microsoft.com/vstudio/express/visualc/
2007-06-15 17:10:18
·
answer #2
·
answered by johnhaugeland 2
·
0⤊
0⤋
Yeah you can either add the ".h" extension like everyone said, or you can leave that off and stick (on the next line) "using namespace std;" (without the quotes). Also you don't need the "std::". Just say "cout << "help;"" By the way, I like to stick a "<< endl;" at the end of all my couts. It makes your program prettier (like hitting enter). So here's what it should look like:
Either,
#include
int main()
{
cout << "help" << endl;
return 0;
}
OR
#include
using namespace std;
int main() {
cout << "help" << endl;
return 0;
}
It really depends on the compiler. It may take either, or it may only take one of them.
2007-06-15 10:44:44
·
answer #3
·
answered by Anonymous
·
0⤊
0⤋
This link to Turbo C++ compiler 3.0 might help trouble-shoot that:
http://www.codepedia.com/1/TurboCppHelloWorld
Good Luck.
2007-06-13 06:26:31
·
answer #4
·
answered by The Count 7
·
0⤊
1⤋
you have 2 innovations: a million) set up destroy element at "return 0;": + flow the cursor to the line "return 0;" + Press F9 (toggle destroy element) Run your software in debug mode, it is going to end on the line return 0. At this element, change on your software console domicile windows (the window that pops up once you run) and consider the message. To go out, change back on your IDE and press F5. 2) previous posts have mentioned which you will run your software from the command line; that works too. including a study-line variety of element additionally works.
2016-10-17 03:33:59
·
answer #5
·
answered by ? 4
·
0⤊
0⤋
this compiler is not full or you forgot to type file extension behind "iostream", try finding it and getting its extension
2007-06-13 06:03:53
·
answer #6
·
answered by Anonymous
·
0⤊
0⤋
first it's "iostream.h"
I believe that you must first call the std lib
do this by putting "using namespace std;" after your include
2007-06-13 06:05:56
·
answer #7
·
answered by enewvine 2
·
0⤊
2⤋
stdio
2007-06-13 06:05:53
·
answer #8
·
answered by Jimbob 4
·
0⤊
1⤋