added the files
This commit is contained in:
1 parent
8a351b03b4
commit
5974b9d325
5 files changed
+42
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
+14
-2
@@ -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("╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user