Is it in good style do use cerr in situation described below?
try
{
cout << a + b;
}
catch(const IntException& e)
{
c
stderr
is the traditional stream to send error messages (so that the OS/shell/whatever can capture error messages separately from "normal" output), so yes, use std::cerr
!
I make no comment as to whether catching an exception simply to print it out is any better than simply letting the exception propagating out of your application...