i would like to know if i am on the right tracks or completely off the rails with this program. i need to Store the name in an array. Then ask for their surname. The program should declare a third array large enough to hold both names including a space between them. The names should both be copied to the third array (with a space between them) and the resultant array output to the screen. i amnot use any string library functions; manage the arrays yourself using loops to do the name copying and concatenation.
This is what i have got soo far and am stuck with the output the final array
Code:
char Fname[10];
char Lname2[10];
char FullName;
int i;
cout <<"enter your first name";
for (i=0; i<3; i++)
{
cin >> Fname[i];
}
cout<<"Please enter you Second Name";
for (i=0; i<3; i++)
{
cin >>Lname2[i];
}
for (i=0; i<20; i++)
{
cout << Fname[i] <<Lname2[i];
}
system("pause");
}