Pages

Saturday, 20 July 2013

Dev C++ - Review + Variations from Turbo C++




           I was addicted to the old school Turbo C++, until very recently, until I met Dev C++. For those who don't know new C++, Dev C++ may be a little strange, but once you get used to some minor changes from that of TC++ , you will be amazed how sophisticated is Dev C++ Compliler. 

       Some of the features I love the most are :
  • Automatic Indentation 
  • Syntax Highlighting
  • Updated and ready to go!
  • Error identification is BITCHIN'!!!
So if you are not satisfied with Turbo C++, I completely recommend you to move on to Dev C++, but you have to know the changes to be made in the program as for it to work with Dev C++. I am listing here, two of the most basic variations of DC++ from TC++ here:

     
  1. .header extension is removed, and most of the header names are changed. For example in TC++,  you include iostream header as : #include<iostream.h> , whereas in Dev C++, you should remove .h extension and type it like this : #include<iostream>. There are many header variations like this.
  2. Another important change is that, inorder to make the program work, you are required to enter this :          using namespace std;                                                                                                               in between the header inclusion and class/function declaration. 

 Here is the addition program in two compilers:

Turbo

#include<iostream.h>
void main(){
int a=3,b=3,c;
c=a+b;
cout<<c;
}

Dev

#include<iostream>
using namespace std;

void main(){
int a=3,b=3,c;
c=a+b;
cout<<c;
}

So, to conclude, Dev C++ is loaded up with many amazing and sophisticated features. And it is also opensource (FREE!) . You may download it from their website. 
That is all for now guys.. 
Spare a moment to say thanks. :)

No comments:

Post a Comment