Moved to static that should have been done at first

This commit is contained in:
Justin 2025-05-11 12:51:09 -05:00
parent f0daf29917
commit 8659174a14
6 changed files with 14 additions and 13 deletions

View File

@ -6,9 +6,6 @@ using namespace std;
class Intro { class Intro {
public: public:
static void mainIntro();
void mainIntro();
private:
}; };

View File

@ -15,5 +15,6 @@ class Print{
static void printl(string text); static void printl(string text);
static void println(string text); static void println(string text);
static void type(string text); static void type(string text);
static void blank_line();
}; };

View File

@ -3,8 +3,6 @@
using namespace std; using namespace std;
class Title{ class Title{
private:
protected:
public: public:
void mainTitle(); static void mainTitle();
}; };

View File

@ -1,6 +1,6 @@
#include "include/intro.h" #include "include/intro.h"
void Intro::mainIntro(){ void Intro::mainIntro(){
cout << "The world didn't end with a bang. It ended with a groan.. and the scratching of death fingers against steel shutters." << endl; Print::blank_line();
std::this_thread::sleep_for(std::chrono::milliseconds(3000)); Print::type("The world didn't end with a bang. It ended with a groan.. and the scratching of death fingers against steel shutters.");
} }

View File

@ -2,9 +2,10 @@
int main (){ int main (){
system("clear"); system("clear");
Title title; //Title title;
title.mainTitle(); Title::mainTitle();
Intro intro; //Intro intro;
intro.mainIntro(); Intro::mainIntro();
//cin >> ;
return 0; return 0;
} }

View File

@ -24,3 +24,7 @@ void Print::type(string text){
cout << endl; cout << endl;
delete[] charArray; delete[] charArray;
} }
void Print::blank_line(){
cout << endl;
}