int ch2_n = 0;
for(int i = word_array[n];i <= length2;i++)
ch1[i] = ch2[ch2_n++];
Although this program doesn't work that's the work , I have done , I have gone through the strcpy(),strncpy() but they weren't helpful since we enter the word number to replace and not the position of the character.
I think there can be a better solution using strings.
Are you saying me? I have understood the task very well. But at first you should to determine the word that has the given successive number in the statement should not you? You can do this by using std::istringstream