0

FAQ#1 Today's Question is: 1) Can we use anything else instead of "cout" in c++ ? Even name them?

7th Oct 2018, 4:17 PM
Justin D'souza
Justin D'souza - avatar
6 Réponses
+ 1
std::cout can be used instead of cout
7th Oct 2018, 4:22 PM
Pandiselvi
+ 1
Justin D'souza beside c++ streams, you can use c style I/O https://en.cppreference.com/w/cpp/io/c/ Pandiselvi cout and std::cout are the SAME object
7th Oct 2018, 4:29 PM
KrOW
KrOW - avatar
+ 1
#include <cstdio> printf("write here what you want print");
7th Oct 2018, 4:58 PM
Emmanuel Norambuena
Emmanuel Norambuena - avatar
+ 1
Manny Bookwriters scanf its for input not for output (and its unuseful if you dont ise format string)
7th Oct 2018, 5:00 PM
KrOW
KrOW - avatar
+ 1
Manny Bookwriters You can always delete/edit your answer 😉
7th Oct 2018, 5:02 PM
KrOW
KrOW - avatar
0
Yes, thanks. I already have edited my answer. 😊
7th Oct 2018, 5:04 PM
Emmanuel Norambuena
Emmanuel Norambuena - avatar