while (1)
{
char j;
if (x[j] == y[j])
Here I am trying to start a loop where I want to able to match any of the characters from char array 'x' with char array 'y'. If the characters do match from x to y then I want to keep them as they are and if they don't I want to be able to replace them with a star '*'. (e.i. x = [a,p,f] and y = [a,p,p,l,e] and so after the match up and replacement y = [a,p,p,*,*] and when I cout it spells out app**)
I have no idea how to set this up and what type of loop I should use. I fairly new to programming and I know basic replace and switch functions.