I used printf and scanf in C. What are their replacements in C++? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

I used printf and scanf in C. What are their replacements in C++?

7th Jul 2017, 1:17 PM
Sanam Limbu
Sanam Limbu - avatar
2 Antworten
+ 2
std::cout and std::cin
7th Jul 2017, 1:25 PM
aklex
aklex - avatar
0
if you are writing c++ with iostream header and using namespace std then simply use cout and cin
7th Jul 2017, 3:24 PM
‎ ‏‏‎Anonymous Guy