>>88
慣れれば使いやすいよ それに便利

void Print(std::ostream &os)
{
 os << "プリントしたい中身を書く";
}
みたいなの作っておけば
Print(std:cout);はもちろん

std::ofstram of("hoge.txt");
Print(of); もできるし

std::ostringstream os;
Print(os); ともできる
printfとかじゃこんな事するのはめんどくない?
まぁ適材適所だと思いますけど