+ 2

Someone explain the difference between these three

#include <iostream> #include <math.h> #include <conio.h> #include <stdio.h>

16th Nov 2017, 9:58 PM
Jamal Jillo
Jamal Jillo - avatar
2 Answers
+ 4
These all are libraries. Libraries include various functions and other things for programmers to use. First one is a C++ library, other 3 are C libraries, but they also are compatible with C++. <iostream> includes input and output functionalities for C++, like std::cin and std::cout objects. <math.h> includes math functions for C. <conio.h> includes functions for console input/output. And <stdio.h> also has I/O functions for C, like printf, scanf
16th Nov 2017, 10:26 PM
Eligijus Silkartas
Eligijus Silkartas - avatar
+ 3
I don't learn C++ yet, but I just wanted to point out : There are 4 types, not 3 😂
16th Nov 2017, 11:39 PM
Learnsolo