Compare commits

..

No commits in common. "f0daf2991709529b3ffd888598b6ece0b53dbad9" and "f5b2925bdf931419edf5a39238ca8f62b62941e4" have entirely different histories.

6 changed files with 19 additions and 40 deletions

View File

@ -1,5 +1,4 @@
#include <iostream>
#include "intro.h"
#include "title.h"
#include <cstdlib>
using namespace std;

View File

@ -1,7 +1,5 @@
#include <iostream>
#include <string>
#include <thread>
#include <cstring>
using namespace std;
class Print{
@ -12,8 +10,7 @@ class Print{
~Print(){
};
static void printl(string text);
static void println(string text);
static void type(string text);
void printl(string text);
void println(string text);
};

View File

@ -3,6 +3,6 @@ using namespace std;
class Sleep{
public:
static void delay(int milliseconds);
void delay(int milliseconds);
};

View File

@ -1,7 +1,6 @@
#include "include/main.h"
int main (){
system("clear");
Title title;
title.mainTitle();
Intro intro;

View File

@ -1,26 +1,9 @@
#include "include/print.h"
void Print::printl(string text){
cout << text << flush;
cout << text;
}
void Print::println(string text){
cout << text << endl;
}
void Print::type(string text){
int a = text.size();
char* charArray = new char[a+1];
strcpy(charArray, text.c_str());
int i = 0;
int time = 300;
while(i < a+1){
std::this_thread::sleep_for(std::chrono::milliseconds(time));
cout << charArray[i] << flush;
i++;
}
cout << endl;
delete[] charArray;
}

View File

@ -1,20 +1,21 @@
#include "include/title.h"
#include "include/print.h"
#include "include/sleep.h"
void Title::mainTitle(){
int s = 900;
Print::println("███████╗██╗ ██╗ ██████╗ ████████╗ ██████╗ ██╗ ██╗███╗ ██╗ ██████╗ ███████╗████████╗███████╗");
Sleep::delay(s);
Print::println("██╔════╝██║ ██║██╔═══██╗╚══██╔══╝██╔════╝ ██║ ██║████╗ ██║ ██╔══██╗██╔════╝╚══██╔══╝██╔════╝");
Sleep::delay(s);
Print::println("███████╗███████║██║ ██║ ██║ ██║ ███╗██║ ██║██╔██╗ ██║ ██████╔╝█████╗ ██║ █████╗ ");
Sleep::delay(s);
Print::println("╚════██║██╔══██║██║ ██║ ██║ ██║ ██║██║ ██║██║╚██╗██║ ██╔═══╝ ██╔══╝ ██║ ██╔══╝ ");
Sleep::delay(s);
Print::println("███████║██║ ██║╚██████╔╝ ██║ ╚██████╔╝╚██████╔╝██║ ╚████║ ██║ ███████╗ ██║ ███████╗");
Sleep::delay(s);
Print::println("╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝");
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("╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝");
}