How to create your own insertions in c ?

Posted by  Pravesh Singh
 1512  View(s)
Ratings:
Rate this:
Hi,

How to create your own insertions in c++?

Thanks in advance. 
  1. 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