Я изучаю С++. cout
- это экземпляр класса std::ostream
.
Как я могу напечатать форматированную строку с ней?
Я все еще могу использовать printf
, но я хочу узнать больше о методе стиля C++, который может использовать все преимущества С++. Я думаю, что это возможно с помощью std::ostream
, но я не могу найти правильный путь.