From 8f040c91b114a64dd4582eef4260db9a8215db62 Mon Sep 17 00:00:00 2001 From: Calson Noah Date: Thu, 6 Jul 2017 13:09:59 +0100 Subject: [PATCH] updated functions to handle display --- display.h | 117 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100755 display.h diff --git a/display.h b/display.h new file mode 100755 index 0000000..7b3a8f8 --- /dev/null +++ b/display.h @@ -0,0 +1,117 @@ +//display.h:name and session display + +/* +Program title: CMDTYPIST +Author: Chiatiah Calson +License: GPL 3 or later versions +Date and Time: 5 July 2017 @ 10:40PM +Program Size: 2.8 +*/ + +/*implementing a function to display the +name of the program.*/ +extern void name_display(void) +{ + system("clear"); + printf("\n\n\n\t\t%s %s %s %s","+*******", "+**********+", "+****", "\t+**********+\n"); + printf("\t\t%s %s %s %s","|*******", "|**********|", "|***+*", " \t|**********|\n"); + printf("\t\t%s %s %s %s","**", " ** ** **", "** **", "\t **\n"); + printf("\t\t%s %s %s %s","**", " ** ** **", "** **", "\t **\n"); + printf("\t\t%s %s %s %s","**", " ** ** **", "** **", "\t **\n"); + printf("\t\t%s %s %s %s","**", " ** ** **", "** **", "\t **\n"); + printf("\t\t%s %s %s%s","|*******", "|* ** *|", "|*******", "\t **\n"); + printf("\t\t%s %s %s%s","+*******", "+* *+", "+******", "\t ++\n"); + printf("\n\n%s\n\n", " cmd typist: Where programmers type!!!"); + sleepf(1); +} + +extern void lesson_list(void) + { + srand((unsigned)time(NULL)); + unsigned short n=rand()%13; + system("clear"); + puts("LESSONS, use command