C++ cout with prefix

后端 未结 4 1689
醉话见心
醉话见心 2021-01-07 14:15

I want a ostream with a prefix at the beginning of every line redirected on cout; I try this:

#include 
#include 
class paralle         


        
4条回答
  •  滥情空心
    2021-01-07 14:59

    Alternatively you could write a function though the syntax changes.

    template
    void print(T content)
    {
        cout<

提交回复
热议问题