FAQ#1 Today's Question is: 1) Can we use anything else instead of "cout" in c++ ? Even name them? | Sololearn: Learn to code for FREE!

0

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

faq

10/7/2018 4:17:16 PM

Justin D'souza

6 Answers

New Answer

+1

std::cout can be used instead of cout

+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

+1

#include <cstdio> printf("write here what you want print");

+1

Manny Bookwriters scanf its for input not for output (and its unuseful if you dont ise format string)

+1

Manny Bookwriters You can always delete/edit your answer πŸ˜‰

0

Yes, thanks. I already have edited my answer. 😊