Home > DeveloperSection > Forums > How to create your own insertions in c ?
Pravesh Singh
Pravesh Singh

Total Post:101

Points:709
Posted on    June-14-2013 11:50 PM

 Visual C++ Visual C++ 
Ratings:


 1 Reply(s)
 750  View(s)
Rate this:
Hi,

How to create your own insertions in c++?

Thanks in advance. 


AVADHESH PATEL

Total Post:604

Points:4228
Posted on    June-15-2013 4:47 AM

Hi,

try this:

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

Don't want to miss updates? Please click the below button!

Follow MindStick