Compare commits
4 Commits
f5b2925bdf
...
f0daf29917
Author | SHA1 | Date |
---|---|---|
|
f0daf29917 | |
|
5855b37c6e | |
|
b7ad0fbb6c | |
|
1673e995a6 |
|
@ -1,4 +1,5 @@
|
|||
#include <iostream>
|
||||
#include "intro.h"
|
||||
#include "title.h"
|
||||
#include <cstdlib>
|
||||
using namespace std;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <cstring>
|
||||
using namespace std;
|
||||
|
||||
class Print{
|
||||
|
@ -10,7 +12,8 @@ class Print{
|
|||
~Print(){
|
||||
|
||||
};
|
||||
void printl(string text);
|
||||
void println(string text);
|
||||
static void printl(string text);
|
||||
static void println(string text);
|
||||
static void type(string text);
|
||||
|
||||
};
|
||||
|
|
|
@ -3,6 +3,6 @@ using namespace std;
|
|||
|
||||
class Sleep{
|
||||
public:
|
||||
void delay(int milliseconds);
|
||||
static void delay(int milliseconds);
|
||||
|
||||
};
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "include/main.h"
|
||||
|
||||
int main (){
|
||||
system("clear");
|
||||
Title title;
|
||||
title.mainTitle();
|
||||
Intro intro;
|
||||
|
|
|
@ -1,9 +1,26 @@
|
|||
#include "include/print.h"
|
||||
|
||||
void Print::printl(string text){
|
||||
cout << text;
|
||||
cout << text << flush;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -1,21 +1,20 @@
|
|||
#include "include/title.h"
|
||||
#include "include/print.h"
|
||||
|
||||
#include "include/sleep.h"
|
||||
|
||||
void Title::mainTitle(){
|
||||
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("╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝");
|
||||
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("╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue