/* 
	---------------------------------------------------------------------------------------
	This header was created to save me time and so I dont have to manualy make my
	banners anymore. There are 4 diffrent types of banners.. here is the explantion of them
	---------------------------------------------------------------------------------------

	**Banner Type ONE**
	Banner1(true,'*',string);

	****************************************************************************************
	****************************** Your string right here **********************************
	****************************************************************************************

	Press any key to contiune

	**Banner Type TWO**
	Banner2(false,'$',string);

	$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
	$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
	$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Your string right here $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
	$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
	$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

	
	**Banner type THREE**
	Banner3(true,'%',string);

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Your string right here %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	

	Press any key to contiune

	**Banner type FOUR**
	Banner4(false,'#',string);

	########################################################################################
	########################################################################################
	########################################################################################
	########################################################################################
	########################################################################################
	########################################################################################
	########################################################################################
	########################################################################################
	############################## Your string right here ##################################
	########################################################################################
	########################################################################################
	########################################################################################
	########################################################################################
	########################################################################################
	########################################################################################
	########################################################################################
	########################################################################################
	

	----------------------------------------------------------------------------------------
	If you havent figured it out by now here is what the diffrent arugments do
	Banner1(//true gives "Press any key to contiune" and then clears screen\\,//Charecter to
			make the message in\\,//your charecter array string for the message\\)
	----------------------------------------------------------------------------------------
*/

#include <iostream>
#include <stdlib.h>
#include <string.h>

using namespace std;


void Banner1(bool ClearScreen, char BanChar, char* message, int add)
{
	int StrLength;
	int NumStar;
	//char getchar;
	system("cls");
	//********************************************//
	for (int y=0;y<3;y++)
	{

		if (y==1)
		{
			StrLength= strlen(message);
			NumStar= ((80 - StrLength)/2)-2;
			
			for (int a=0; a<=NumStar; a++)
				cout << BanChar;
			
			cout << " " << message << " ";

			for (int a=0; a<=NumStar; a++)
				cout << BanChar;
		}
	
		else
		{
			for (int x=0;x<79;x++)
				cout << BanChar;
		}
		if (add==1)
			cout << BanChar;
	}
	if (add==0)
		cout << BanChar << BanChar;
	cout << endl;
	//********************************************//

	if (ClearScreen==true)
	{
		cout << endl << "Press any key to contiune";
		//cin.get(getchar);
		cin.ignore();
		system("cls");
	}

		
}

void Banner2(bool ClearScreen, char BanChar, char *message)
{
	int StrLength;
	int NumStar;
	//char getchar;
	system("cls");
	//********************************************//
	for (int y=0;y<5;y++)
	{

		if (y==2)
		{
			StrLength= strlen(message);
			NumStar= ((80 - StrLength)/2)-2;
			
			for (int a=0; a<=NumStar; a++)
				cout << BanChar;
			
			cout << " " << message << " ";

			for (int a=0; a<=NumStar; a++)
				cout << BanChar;
		}
	
		else
		{
			for (int x=0;x<79;x++)
				cout << BanChar;
		}
		cout << BanChar;
	}
	cout << endl;
	//********************************************//

	if (ClearScreen==true)
	{
		cout << endl << "Press any key to contiune";
		//cin.get(getchar);
		cin.ignore();
		system("cls");
	}
		
}

void Banner3(bool ClearScreen, char BanChar, char *message)
{
	int StrLength;
	int NumStar;
	//char getchar;
	system("cls");
	//********************************************//
	for (int y=0;y<11;y++)
	{

		if (y==5)
		{
			StrLength= strlen(message);
			NumStar= ((80 - StrLength)/2)-2;
			
			for (int a=0; a<=NumStar; a++)
				cout << BanChar;
			
			cout << " " << message << " ";

			for (int a=0; a<=NumStar; a++)
				cout << BanChar;
		}
	
		else
		{
			for (int x=0;x<79;x++)
				cout << BanChar;
		}
		cout << BanChar;
	}
	cout << endl;
	//********************************************//

	if (ClearScreen==true)
	{
		cout << endl << "Press any key to contiune";
		//cin.get(getchar);
		cin.ignore();
		system("cls");
	}
		
}

void Banner4(bool ClearScreen, char BanChar, char *message)
{
	int StrLength;
	int NumStar;
	//char getchar;
	system("cls");
	//********************************************//
	for (int y=0;y<25;y++)
	{

		if (y==12)
		{
			StrLength= strlen(message);
			NumStar= ((80 - StrLength)/2)-2;
			
			for (int a=0; a<=NumStar; a++)
				cout << BanChar;
			
			cout << " " << message << " ";

			for (int a=0; a<=NumStar; a++)
				cout << BanChar;
		}
	
		else
		{
			for (int x=0;x<79;x++)
				cout << BanChar;
		}
		cout << BanChar;
	}
	cout << endl;
	//********************************************//

	if (ClearScreen==true)
	{
		cout << endl << "Press any key to contiune";
		//cin.get(getchar);
		cin.ignore();
		system("cls");
	}
		
}

