cin and cout

why is it displaying the message compiler does not support cin and cout when namespace std and other header files are included appropriately?

Please paste your code as well so that we can figure out what went wrong.

2 Likes

have you included iostream? just asking…

have you selected the appropriate compiler?

The header file mentioned in online compiler is represented as #include (same in dev compiler) whereas in Turbo c++ it is represented as #include<iostream.h>. The change is here(online compiler) you no need to include ‘.h’. I think sometimes occur due to these problems. If you include your code it is easy to find out problem. Orelse in your compiler library files are not included properly