I can’t understand this craze for an antiquated compiler which, although, was a great product during its time, is not really a great platform to work on now.
So, if you still use Turbo C++, here are a few reasons to move on.
1. It follows an older C++ standard
Ever wondered why the following program (the ubiquitous ‘Hello World’ in C++) does not compile on Turbo C++?
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello World";
return 0;
}
The reason is that Turbo C++ requires you to use the older
#include <iostream.h> declaration.
This is just a trivial menace. You cannot use template functions, there is no exception handling, no STL…… must i go on?
2. It forces you to use non-standard headers and functions
The first thing that people say when they move onto another compiler is, “Hey, where did conio.h go?”. Thats because you’re forced to use getch() at the end of any console program written in Turbo C++ (you wont see the output if you dont).
So, the moment you step outside the Turbo C++ world, you feel lost without your friends getch(), gotoxy() and clrscr().
3. The DOS mode editor just doesn’t cut it anymore
Agreed, the syntax highlighting is tidy. But thats all there is to compliment.
You cant change the font. The scrollbars are not convenient to use either.
Some alternatives:
1. Dev C++ : This is a great IDE thats free to download and use.
http://www.bloodshed.net/devcpp.html
2. Code::Blocks : My personal favorite. Has a great code completion feature, and you can configure it to work with any compiler.
http://www.codeblocks.org/
3. Visual C++ 2008 express : Free to download and use again, but a little heavyweight.
http://www.microsoft.com/express/vc/
4. Dump all the IDEs. Just switch to linux, use vim and g++ from the commandline :
You will end up doing this someday. Its the purest way to code, and gives you total control.