What is the difference between the basic input and output of cin and cout from printf and scanf in c++?

Asked 2 years ago, Updated 2 years ago, 20 views

I'm doing c++, and printf and scanf are all input and output, so I'm curious Is there a reason why I only use cin and cout because it's printed the same well as cin and cout?

c++

2022-09-20 21:44

1 Answers

In C++, you can include and use C library files. In the case of printf and scanf, it is a function of the C language, and sin, cout is C++.


2022-09-20 21:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.