+ 1
Can we get the output of any string without using cout and print f
please reply as fast as you can
6 Answers
+ 3
int main() {
clog <<"Hello";
cerr <<" world";
return 0;
}
+ 1
Nah. For C++, console-based output is done via std::cout. Why wouldn't you want to use them?
0
makaji what is clog and cerr here refer to
0
you can use std::cerr and std::clog. They write to stderr instead of stdout, but from the user's perspective
0
cerr: std unbuffered error stream
clog: std buffered error stream
try writing some codes with them. you'll know their use