How to create your own insertions in c ?

Total Post:101

Points:709
 1277  View(s)
Ratings:
Rate this:
Hi,

How to create your own insertions in c++?

Thanks in advance. 
  1. Post:604

    Points:4228
    Re: How to create your own insertions in c ?

    Hi,


    try this:

    ostream &operator <<(ostream &stream,class-name on)
    {
      //body of inserter
    return stream;
    }

      Modified On Mar-30-2018 03:52:39 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!