added the files
This commit is contained in:
parent
8a351b03b4
commit
5974b9d325
|
@ -2,3 +2,5 @@ main.d
|
|||
title.d
|
||||
obj/*
|
||||
Shot-Gun-Pete
|
||||
banner.txt
|
||||
print.d
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
using namespace std;
|
||||
|
||||
class Print{
|
||||
public:
|
||||
Print (){
|
||||
|
||||
};
|
||||
~Print(){
|
||||
|
||||
};
|
||||
void printl(string text);
|
||||
void println(string text);
|
||||
|
||||
};
|
|
@ -1,4 +1,5 @@
|
|||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
using namespace std;
|
||||
|
||||
class Title{
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#include "include/print.h"
|
||||
|
||||
void Print::printl(string text){
|
||||
cout << text;
|
||||
}
|
||||
|
||||
void Print::println(string text){
|
||||
cout << text << endl;
|
||||
}
|
|
@ -1,9 +1,21 @@
|
|||
#include "include/title.h"
|
||||
#include "include/print.h"
|
||||
|
||||
|
||||
void Title::mainTitle(){
|
||||
|
||||
cout << "This is the title" << endl;
|
||||
int s = 2000;
|
||||
Print print;
|
||||
print.println("███████╗██╗ ██╗ ██████╗ ████████╗ ██████╗ ██╗ ██╗███╗ ██╗ ██████╗ ███████╗████████╗███████╗");
|
||||
usleep(s);
|
||||
print.println("██╔════╝██║ ██║██╔═══██╗╚══██╔══╝██╔════╝ ██║ ██║████╗ ██║ ██╔══██╗██╔════╝╚══██╔══╝██╔════╝");
|
||||
usleep(s);
|
||||
print.println("███████╗███████║██║ ██║ ██║ ██║ ███╗██║ ██║██╔██╗ ██║ ██████╔╝█████╗ ██║ █████╗ ");
|
||||
usleep(s);
|
||||
print.println("╚════██║██╔══██║██║ ██║ ██║ ██║ ██║██║ ██║██║╚██╗██║ ██╔═══╝ ██╔══╝ ██║ ██╔══╝ ");
|
||||
usleep(s);
|
||||
print.println("███████║██║ ██║╚██████╔╝ ██║ ╚██████╔╝╚██████╔╝██║ ╚████║ ██║ ███████╗ ██║ ███████╗");
|
||||
usleep(s);
|
||||
print.println("╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue