User-defined Output Stream Manipulators in C

后端 未结 3 1421
一向
一向 2020-12-21 09:56

I am learning C++, and in the part of user-defined output stream manipulatior, I am stuck. This is the example code:

    #include 
     using         


        
3条回答
  •  情话喂你
    2020-12-21 10:35

    cout's left shift operator calls endLine with cout as an argument. Functions (technically function pointers) don't need to be called when you write their names; you can pass them around as values and have some other code call them later.

提交回复
热议问题