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,
under the header inclusion.
Example Program :
ODD OR EVEN
Structural
Differences
Note that you must also include the line,
using namespace std;
Example Program :
ODD OR EVEN
No comments:
Post a Comment