// Yousef Rabah   Assignment 12 Strings    Nov 27th      Drawer 1602


#include "CS35lib.h"

void get_names (char name1[], char name2[], char name3[])
{
	
	cout<<"Enter name of friend 1: ";
	getline (name1);
	cout<<"Enter name of friend 2: ";
	getline(name2);
	cout<<"Enter name of friend 3: ";
	getline(name3);
	cout<<endl;
	return;

}
void letter (char friend1[], char friend2[], char friend3[])
{
	cout<<"Dear "<<friend1<<","<<endl;
	cout<<"I thought you know that "<<friend2<<" is the one who has been drinking your milk and not replacing it.";
	cout<<" Please don't tell "<<friend2<<" that I'm the one who told you.\n";
	cout<<"Yours - "<<friend3;

}
int main()
{
	char friend1[20], friend2[20], friend3[20];
	get_names ( friend1, friend2, friend3);
	letter ( friend1, friend2, friend3);
	cout<<endl;
	cout<<endl;
	letter ( friend2, friend1, friend3);
	cout<<endl;
	cout<<endl;
	letter ( friend3, friend2, friend1);
        cout<<endl;
        cout<<endl;
	return 0;

}



/*
RUN

[rabahyo@quark CS35]$ ./a.out
Enter name of friend 1: Yousef
Enter name of friend 2: JoAnn
Enter name of friend 3: Bassam

Dear Yousef,
I thought you know that JoAnn is the one who has been drinking your milk and not
 replacing it. Please don't tell JoAnn that I'm the one who told you.
Yours - Bassam

Dear JoAnn,
I thought you know that Yousef is the one who has been drinking your milk and no
t replacing it. Please don't tell Yousef that I'm the one who told you.
Yours - Bassam

Dear Bassam,
I thought you know that JoAnn is the one who has been drinking your milk and not
 replacing it. Please don't tell JoAnn that I'm the one who told you.
Yours - Yousef

*/

