All pastes #502119 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-22 11:09 UTC
rendered paste body
#include <iostream.h>
#include <stdlib.h>

void main()
{
	cout<<"             ###########################################\n";
	cout<<"             ##              Achilles 1.0             ##\n";
	cout<<"             ##          Created By Ice_Dragon        ##\n";
	cout<<"             ###########################################\n";
	cout<<endl;
	cout<<endl;
	cout<<endl;
	cout<<endl;

	cout<<"What Do You Want To Do?\n";
	cout<<endl;

	cout<<"             ###########################################\n";
    cout<<"             ## [1] - Server Builder                  ##\n";
	cout<<"             ## [2] - Connection Status               ##\n";
	cout<<"             ## [3] - Manual Connect                  ##\n";
	cout<<"             ## [4] - Live Help                       ##\n";
	cout<<"             ## [5] - About                           ##\n";
	cout<<"             ###########################################\n";
	
	cout<<endl;

	int opt;
	cout<<"Please Select An Option:: ";
	cin >> opt;

	cout<<endl;

		switch (opt){

		case 1:

			// Server Builder

system("cls");
	cout<<"             ###############################################\n";
	cout<<"             ##           Achilles Server Builder         ##\n";
	cout<<"             ##                                           ##\n";
	cout<<"             ###############################################\n";


	cout<<endl;
	cout<<endl;
	cout<<endl;
	cout<<endl;

	cout<<"             ###############################################\n";
	cout<<"             ##               Server Builder              ##\n";
	cout<<"             ##         Follow On Screen Instructions     ##\n";
	cout<<"             ###############################################\n";

	cout<<endl;
	cout<<endl;


	char ip[15];
		cout<<"Please Enter Your Static IP Address / DNS :: ";
			cin >> ip;
	cout<<endl;

	int prt[4];
		cout<<"Please Enter A Port To Connect To:: ";
			cin >> prt;
		cout<<endl;

	char fn;
		cout<<"Please Enter A FileName (e,g; server.exe) :: ";
			cin >> fn;
		cout<<endl;
		cout<<endl;
	
		cout<<"Please Stand By....\n";
	break;

// Connection Status

		case 2:
			int opt2;


			system("cls");

	cout<<"             ###############################################\n";
	cout<<"             ##              Connection Status            ##\n";
	cout<<"             ###############################################\n";
	cout<<endl;
	cout<<endl;
	cout<<endl;
	cout<<"Current Connections Available :";

	cout<<endl;
	cout<<endl;

	cout<<" [1] Test Connection 1";

	cout<<endl;

	cout<<" [2] Test Connection 2";

	cout<<endl;
	cout<<endl;

	cout<<"Choose which to connect to ::";
	cin >> opt2;

	// Testing a embedded switch

	switch (opt2){

	case 1:
		cout<<"Connecting To; Test Connection 1 \n";

	break;

	case 2:
		cout<<"Connecting To; Test Connection 2 \n";
			
		break;

	case 3:
		cout<<"             ###############################################\n";
		cout<<"             ##             Achilles Manual Connect       ##\n";
		cout<<"             ###############################################\n";
		cout<<endl;
		cout<<endl;
		cout<<"Please Enter A IP To Connect To::";
			char mip[15];
			cin >> mip;
			cout<<endl;

		cout<<"Please Enter A Port To Connect To::";
			int port[4];
				cin >> port;
			cout<<endl;

			cout<<"Ip = ";
				cout<<mip;
			cout<<endl;

			cout<<"Port = ";
				cout<<port;
			cout<<endl;

			cout<<"Is The Above Information Correct? Y/N :\n";
				char ans [1];
				cin>>ans;

		break;
		break;
}
}
}