#include "stdafx.h"
#include<cstring>
#include<iostream>
using namespace std;
const int SIZE = 20;
int _tmain(int argc, _TCHAR* argv[])
{
char firstName[SIZE];
char lastName[SIZE];
char fullName[2*SIZE+1];
cout<<"Enter your first name:/0";
cin>>firstName;
cout<<"Enter your last name:/0";
cin>>lastName;
strncpy(fullName,lastName,SIZE);
strcat(fullName,", ");
strncat(fullName,firstName,SIZE);
fullName[SIZE-1]='/0';
cout<<"Here is the information in a single string:"
<<fullName<<endl;
return 0;
}