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:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgliy81bx5a7p6cjCwTOBVb2YHXgW1TiaVY14l_yCPpYKGnEWIFnCYIznXqhKiVbos_wWnYZeGKoTOkaqjeoiPV42FFrkL1BGzqv__6r7MFzzbHNmo1nRMys6sanv_LCIgS6ELY96oVymY/s1600/Capture1.JPG)
Structural
Differences
Note that you must also include the line,
under the header inclusion.
Example Program :
ODD OR EVEN
Differences
Note that you must also include the line,
using namespace std;
Example Program :
ODD OR EVEN
No comments:
Post a Comment