When I search on the Internet for the difference between these two libraries, everyone says that <iostream>
is the standard I/O library of C++ and <cstdio>
is for C.
My professor says that cin>>
and cout<<
are not good functions and if we use cin>>
many times, our application will definitely crash. He also says that stdio
provides nearly three times faster input and output than iostream
. However, I prefer using iostream
because it is more convenient, and also I don't know if my professor is right.
What do you advise me to use?