Zet-El / unicode-src-c

32-bit x86/x64 unicode C source files
0 stars 0 forks source link

unicode-src-c0 #2

Open Zet-El opened 1 month ago

Zet-El commented 1 month ago

include / getchar() /

include

/ void print_z1(void) /

/ printf text block func/ /

/ void print_z2(void) /

/ printf text block func. /

/ void print_z3(void) /

/ more of printf misc. /

void delay(int x);

int x = 500;

int main(void) { char x1; char x2; char x3; int n1 = 0;

printf("Press a key: ");

getchar();

printf("\n");

for(;;) / infinite for loop / { printf("\nM"); delay(500); printf("a"); delay(500); printf("i"); delay(500); printf("n: "); delay(500); printf("S"); delay(500); printf("T"); delay(500); printf("A"); delay(500); printf("R"); delay(500); printf("T: ");

   getchar();

   printf("\n");

label1:

printf("\nEnter 1: Continue 2: Exit ");

x1 = getchar(); /* value of x1 from input */

printf("\n");   /* tactic for extra line after label1 */
                /* and before switch(x1) */

n1 - getchar();

if (n1 == '1')
{
exit(0);
}       
switch(x1)      /* first switch of three */
{
case '1': printf("\nEntered 1: Psychology TEXT HERE\n");
          getchar();
          goto label1;

          case '2': printf("\nExit on keypress: ");
          getchar();
          n1 = 1;

default:   
          printf("\nE");
          delay(500); 
          printf("x");
          delay(500); 
          printf("i");
          delay(500); 
          printf("t: ");
          getchar();
          exit(0);  

}

label2:
        printf("\nMenu\n");
        printf(" 1 - Psychology \n");
        printf(" 2 - Supplements \n");
        printf(" 3 - To go to prompt: \n"); 

        printf("Enter Selection: ");

        x2 = getchar();

switch(x2)
{
case '1': printf("\nEntered 1: Psychology TEXT HERE\n");
          getchar();
          goto label2;

case '2': printf("\nEntered 2: Supplements TEXT HERE\n");
          getchar();
          break;

default:  printf("\nE");
          delay(500); 
          printf("x");
          delay(500); 
          printf("i");
          delay(500); 
          printf("t: ");
          getchar();
          exit(0); 
}
          getchar();        

         label3: 

          printf("\nMenu\n");
          printf(" 1 - Psychology \n");
          printf(" 2 - Supplements \n");
          printf(" 3 - To go to prompt: \n");   

          printf("\nEnter Selection: ");

          x3 = getchar();

switch(x3)
{
case '1': printf("\nEntered 1: Psychology TEXT HERE\n");
          getchar();
          goto label3;

case '2': printf("\nExit by pressing key\n");
          getchar();
          printf("\nExiting.. ");
          break;

default:  printf("\nE");
          delay(500); /* 1,000=1 second, 10,000-10 seconds */
          printf("x");
          delay(500); /* 1,000=1 second, 10,000-10 seconds */
          printf("i");
          delay(500); /* 1,000=1 second, 10,000-10 seconds */
          printf("t: ");
          getchar();
          exit(0);

  }

}

} void delay(int x) { int c, d;

for (c = 1; c <= 32767; c++) { for (d = 1; d <= 32767; d++) { } } }