Use the knowledge in computational language in C++ to write the a character array .
An Array is a set of values arranged in lists and accessible through a positive numeric index. So, we have that each position of our Array is a variable of the type of our Array, so we have to have a way to initialize this set of variables.
So in an easier way we have that the code is:
#include <stdio.h>
#include <studlib.h>
int main()
{
File*fp;
fp=fopen("cp4in_1.txt","r");
char ch;
//while(1)
//{
while(!feof(fp))
{
char *s1,*s2,*s3;
s1 = (char*)malloc (20 *sizeof (char));
s2 = (char*)malloc (20 *sizeof (char));
s3 = (char*)malloc (20 *sizeof (char));
int i=0,j=0,x,y;
while(1)
{
ch=getc(fp);
if(ch=='\n')
break;
*(s1+i)=ch;
i++;
}
while(1)
{
ch=getc(fp);
if(ch=='\n')
break;
*(s2+j)=ch;
j++;
}
for(x=0;x<i;x++)
{
*(s3+x)=*(s1+x);
}
for(y=0;y<j;x++,y++)
{
*(s3+x)=*(s2+y);
}
for(x=0;x<i+j;x++)
{
printf("%c",*(s3+x));
}
printf("\n");
getc(fp);
}
}
See more about C++ code at brainly.com/question/19705654