Please help i am not able to delete the duplicate charachter in my code

@kailash_01
hello kailash,
erase function will not work on char array. it is defined for stl string. so use stl string in place of char array.