I am getting compilation error , while using insert function. please check my code

hello @shubham_jha

insert function takes string in its second argument and u r passing char ,that why it is showing compilation error

we can’t use insert function for this problem?

…
u can but it is not advisable.

first u need to convert char to string and then u can use insert function.

its better to use pushback or indexing.