Wednesday 26 February 2014

A word for newer IDEs

The thing is, in newer IDEs like Dev C++ , the old  #include<iostream.h> and some other commands will not work. Although these newer ones uses more standardized version of C++, the older versions are still popular among schools and beginner programmers. This is why you gotta understand both. The headers like #include<iostream.h> in older IDEs change into #include<iostream> in newer ones. Also the headers like #include <conio.h> turns into #include "conio.h" . Another change is that the newer IDEs only support integer functions, so you must return some value. Here is a comparison of these kind of variations:

                                       
       
       Structural
      Differences           



Note that you must also include the line,

using namespace std;


under the header inclusion.

Example Program :

ODD OR EVEN
  • In Dev C++ (Typical newer IDE)

  • In Turbo C++ (Older IDE)



No comments:

Post a Comment

You might also like