Why do I have to use "iostream" here instead of "stdio.h" ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why do I have to use "iostream" here instead of "stdio.h" ?

I have very little experience of using codeblocks before sololearn. I used "stdio.h" as the header there but in sololearn it doesn't work! I have to use "iostream"! Why is this happening? Can anybody explain?

20th Aug 2017, 9:59 AM
Rashad Karim
Rashad Karim - avatar
2 Answers
+ 3
iostream is for C++. stdio.h is for C though it still works in C++... You just gotta use stdio and not stdio.h
20th Aug 2017, 10:38 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
0
But stdio.h doesn't seem to be working in C++!
20th Aug 2017, 10:43 AM
Rashad Karim
Rashad Karim - avatar