0

Should i keep using iostream or switch to stdio.

6th Jul 2021, 5:50 AM
Bhavik Mahalle
Bhavik Mahalle - avatar
2 odpowiedzi
+ 3
Those headers (<iostream> and <cstdio>), despite for similarity of purpose (handling I/O operations), are different, and as such, are no comparison. <iostream> is C++ only, and is built with OOP considerations. <cstdio> is C and C++ compatible, but may not be as friendly for beginners. This page might enlighten you about the differences. http://www.cs.technion.ac.il/users/yechiel/c++-faq/iostream-vs-stdio.html
6th Jul 2021, 6:10 AM
Ipang
+ 2
Premise: the stdio library is included in iostream, so if you want to use for some reason those functions, you can. I personally think that if you program in C++ than there is no need for downgrading to a C library
6th Jul 2021, 6:03 AM
Angelo
Angelo - avatar