When writing my own classes, do I need to ifndef iostream (std lib) includes or just user define ones? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

When writing my own classes, do I need to ifndef iostream (std lib) includes or just user define ones?

ifndef on std lib. includes?

4th Nov 2016, 3:25 AM
Blackcloud12
Blackcloud12 - avatar
1 Réponse
+ 3
you only need to ifndef only user defined header files. Standard header files have ifndef already present in them. Although, I don't think there's any harm in putting them inside ifndef.
4th Nov 2016, 4:29 AM
kamal joshi
kamal joshi - avatar