Moved to static that should have been done at first

This commit is contained in:
Justin committed 2025-05-11 12:51:09 -05:00
1 parent f0daf29917
commit 8659174a14
6 files changed
+14 -13

No files matched your search

+1 -4
View File
@@ -6,9 +6,6 @@ using namespace std;
class Intro { class Intro {
public: public:
static void mainIntro();
void mainIntro();
private:
}; };
+1
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();
}; };
+1 -3
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();
}; };
+2 -2
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.");
} }
+5 -4
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;
} }
+4
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;
}