Browse Source

Added say hello function (epic game)

main
fdlt3885 2 years ago
parent
commit
302cadb6f6
  1. 5
      src/main/quizproject.c
  2. 1
      src/main/quizproject.h

5
src/main/quizproject.c

@ -829,10 +829,15 @@ void B_displayWelcomeMessage(void) {
printf("\t\t------------------------------------------\n\n"); printf("\t\t------------------------------------------\n\n");
} }
void B_sayhello(char name[]){
printf("\t\t Hello %s \n\n", name);
}
void B_username(void) { void B_username(void) {
char name[100] = {0}; char name[100] = {0};
printf("\t\t Please create a fun Username \n"); printf("\t\t Please create a fun Username \n");
scanf("%s", name); scanf("%s", name);
B_sayhello(name);
} }
void b_entertostart() { void b_entertostart() {

1
src/main/quizproject.h

@ -49,6 +49,7 @@ void B_displayWelcomeMessage(void);
void B_username(void); void B_username(void);
void b_entertostart(void); void b_entertostart(void);
int toupper(int _c); int toupper(int _c);
void B_sayhello(char name[]);
#define NUM_QUESTIONS 5 #define NUM_QUESTIONS 5
#define round 3 #define round 3

Loading…
Cancel
Save