---
title: "How to create your own insertions in c  ?"  
description: "How to create your own insertions in c  ?"  
author: "Anonymous User"  
published: 2013-06-14  
updated: 2013-06-15  
canonical: https://www.mindstick.com/forum/1113/how-to-create-your-own-insertions-in-c  
category: "visual c++"  
tags: ["visual c++"]  
reading_time: 1 minute  

---

# How to create your own insertions in c  ?

Hi,\
How to create your own insertions in [c++](https://www.mindstick.com/blog/745/array-in-c-plus-plus)?\
Thanks in advance.

## Replies

### Reply by AVADHESH PATEL

Hi,\
try this:\

```
ostream &operator <<(ostream &stream,class-name on){  //body of inserterreturn stream;}
```


---

Original Source: https://www.mindstick.com/forum/1113/how-to-create-your-own-insertions-in-c

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
