In my laptop I use #include<iostream.h>. Here while practice we use using namespace std. I get error if I use both in opposite platform. Why? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

In my laptop I use #include<iostream.h>. Here while practice we use using namespace std. I get error if I use both in opposite platform. Why?

17th Jun 2016, 8:06 AM
Shrishail Mulawad
Shrishail Mulawad - avatar
2 Réponses
+ 1
Because practicly iostream.h already allow you to use namespace std without writing it. If you still write it you would overload it. That's why!
17th Jun 2016, 3:30 PM
Andrei Cîrpici
Andrei Cîrpici - avatar
+ 1
remove .h just write like this #include <iostream> check this
17th Jun 2016, 4:08 PM
Hossam Almelyan
Hossam Almelyan - avatar