HOW TO CREATE YOUR OWN INSERTIONS IN C ?

Pravesh Singh

Total Post:101

Points:709
Posted by  Pravesh Singh
 991  View(s)
Ratings:
Rate this:
Hi,

How to create your own insertions in c++?

Thanks in advance. 
  1. AVADHESH PATEL

    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;
    }

Answer

NEWSLETTER

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