// Basic struct demo 1
// By DreamVB 00:38 19/10/2016

#include <iostream>
#include <string>

//This holds the persons details.
struct TPerson
{
	char FirstName[80];
	char LastName[80];
};

using namespace std;
using std::cout;
using std::endl;

int main(int argc, char *argv[]){
	char s0[80];
	char s1[80];
	TPerson person;
	//Fill in a basic struct and show details.

	cout << "Enter first name : ";
	cin >> s0;
	cout << "Enter last name  : ";
	cin >> s1;
	
	cout << endl;
	
	//Add to the person struct
	strcpy(person.FirstName, s0);
	strcpy(person.LastName, s1);
	//Outout person data.
	cout << "Struct person now contains : " << endl;
	cout << "First Name : " << person.FirstName << endl;
	cout << "Last Name  : " << person.LastName << endl;
	
	system("pause");
	return 0;
}