From bd9f7f13e7e56aa7840fa4087817b78a4170f4dd Mon Sep 17 00:00:00 2001 From: TanCL88 <65444711+TanCL88@users.noreply.github.com> Date: Mon, 11 Oct 2021 18:04:00 +0800 Subject: [PATCH 1/5] Add files via upload --- examples/HappyBirthday.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 examples/HappyBirthday.cpp diff --git a/examples/HappyBirthday.cpp b/examples/HappyBirthday.cpp new file mode 100644 index 0000000..fc26872 --- /dev/null +++ b/examples/HappyBirthday.cpp @@ -0,0 +1,19 @@ +#include +#include +#include +using namespace std; + +void slowPrint(unsigned long speed, const char *t) { + int x = 0; + while(t[x]!=0) { + cout << t[x++]; + cout.flush(); + usleep(speed); + } +} + +int main() { + slowPrint(100000, "HAPPY BIRTHDAY TO YOU!\n"); + slowPrint(5000, "MAY YOU HAVE A WONDERFUL DAY!!!!"); + return 0; +} \ No newline at end of file From ab455cde252dd4511fe3a192ff2286dd9271f9da Mon Sep 17 00:00:00 2001 From: TanCL88 <65444711+TanCL88@users.noreply.github.com> Date: Tue, 19 Oct 2021 15:50:38 +0800 Subject: [PATCH 2/5] Create HBD.cpp --- HBD.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 HBD.cpp diff --git a/HBD.cpp b/HBD.cpp new file mode 100644 index 0000000..251beae --- /dev/null +++ b/HBD.cpp @@ -0,0 +1,19 @@ +#include +#include +#include +using namespace std; + +void slowPrint(unsigned long speed, const char *t) { + int x = 0; + while(t[x]!=0) { + cout << t[x++]; + cout.flush(); + usleep(speed); + } +} + +int main() { + slowPrint(100000, "HAPPY BIRTHDAY TO YOU!\n"); + slowPrint(5000, "MAY YOU HAVE A WONDERFUL DAY!!!!"); + return 0; +} From 5e408b24bcc1aa175673503c7f27ec53f44a0fc4 Mon Sep 17 00:00:00 2001 From: TanCL88 <65444711+TanCL88@users.noreply.github.com> Date: Tue, 19 Oct 2021 15:57:53 +0800 Subject: [PATCH 3/5] Revert "Create HBD.cpp" --- HBD.cpp | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 HBD.cpp diff --git a/HBD.cpp b/HBD.cpp deleted file mode 100644 index 251beae..0000000 --- a/HBD.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include -#include -#include -using namespace std; - -void slowPrint(unsigned long speed, const char *t) { - int x = 0; - while(t[x]!=0) { - cout << t[x++]; - cout.flush(); - usleep(speed); - } -} - -int main() { - slowPrint(100000, "HAPPY BIRTHDAY TO YOU!\n"); - slowPrint(5000, "MAY YOU HAVE A WONDERFUL DAY!!!!"); - return 0; -} From b91c45efe9be8cebb12ee5d251666c12d8a161e9 Mon Sep 17 00:00:00 2001 From: TanCL88 <65444711+TanCL88@users.noreply.github.com> Date: Tue, 19 Oct 2021 16:01:36 +0800 Subject: [PATCH 4/5] Create HappyBirthday123.cpp --- examples/HappyBirthday123.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 examples/HappyBirthday123.cpp diff --git a/examples/HappyBirthday123.cpp b/examples/HappyBirthday123.cpp new file mode 100644 index 0000000..251beae --- /dev/null +++ b/examples/HappyBirthday123.cpp @@ -0,0 +1,19 @@ +#include +#include +#include +using namespace std; + +void slowPrint(unsigned long speed, const char *t) { + int x = 0; + while(t[x]!=0) { + cout << t[x++]; + cout.flush(); + usleep(speed); + } +} + +int main() { + slowPrint(100000, "HAPPY BIRTHDAY TO YOU!\n"); + slowPrint(5000, "MAY YOU HAVE A WONDERFUL DAY!!!!"); + return 0; +} From ee14b6a3e0ae056d335f7d3327ded4e36928165b Mon Sep 17 00:00:00 2001 From: EC318 <92793950+EC318@users.noreply.github.com> Date: Fri, 29 Oct 2021 00:36:24 +0800 Subject: [PATCH 5/5] Create HBdayEC --- examples/HBdayEC | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/HBdayEC diff --git a/examples/HBdayEC b/examples/HBdayEC new file mode 100644 index 0000000..5d14094 --- /dev/null +++ b/examples/HBdayEC @@ -0,0 +1,21 @@ +#include +#include +#include + +using namespace std; + +void slowPrint(unsigned long speed, const char *t) { + int x = 0; + while(t[x]!=0) { + cout << t[x++]; + cout.flush(); + usleep(speed); + } +} + +int main() { + slowPrint(2000, "Wish you a very happy birthday!!!\n"); + slowPrint(2000, "Wish you a very happy birthday!!!\n"); + slowPrint(300000, "MAY YOU HAVE A BLEESED DAY AHEAD!!!!"); + return 0; +}