+ 1

#include<iostream> or #include<iostream.h>

My teacher is using iostream.h but here in this app this is not working why?? please answer me

27th Sep 2018, 4:58 PM
Mujahid Ahamad
Mujahid Ahamad - avatar
5 odpowiedzi
+ 5
Your teacher is teaching you deprecated C++. iostream.h was used before C++ was standardized. Most compilers don't support it anymore. iostream is used now and should be used instead.
27th Sep 2018, 5:02 PM
Dennis
Dennis - avatar
+ 3
Well, if you like programming, I recommend that you do your own studying and research yourself then, and ask when you are confused about something, with a proper compiler, visual studio or codeblocks are a good choice, they come with a good compiler.
27th Sep 2018, 5:12 PM
Dennis
Dennis - avatar
+ 2
Yes, you are correct. An old compiler for example is turbo C++. It was developed before C++ was standardized and therefore it supports invalid C++, for example: void main, iostream.h, clrscr(). Sadly most schools, especially in india, still use it for some reason. Unless your teacher forces you to, you should stay away from it.
27th Sep 2018, 5:08 PM
Dennis
Dennis - avatar
+ 1
so we can say that iostream.h is used in old c++ and can work in old compilers but not in new, Am i right?
27th Sep 2018, 5:04 PM
Mujahid Ahamad
Mujahid Ahamad - avatar
0
correct, my teacher is using turboC7 😂 ,
27th Sep 2018, 5:10 PM
Mujahid Ahamad
Mujahid Ahamad - avatar