I need to concatenate '*', which is a string, to a character in an array.
For example:
int count=5;
string asterisk="*";
char p[0]='a';
char p[1]='b';
char p[2]='a';
char p[3]='b';
char p[4]='b';
for(int i=0;i<count;i++)
{
asterisk=asterisk+"*";
}
p[0]=p[0]+asterisk;
How can I do this? I want the result to be like "a*****
"