Thread: Need more help

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    114

    Need more help

    Code:
    choice=toupper(getch());  
      for(;;)
      {
             
             if(choice == 'A')
             {
                  system("cls");
                  size=strlen(sentj);
                  for(x=0;x>size;x++)
                  {
                     Sleep(50);
                     printf("%c",sentj[x]);
                  }
                  Sleep(3000);
                  gold = gold + 30;
                  
                  system("cls");
                  size=strlen(sentk);
                  for(x=0;x>size;x++)
                  {
                     Sleep(50);
                     printf("%c",sentk[x]);
                  }
                  Sleep(3000);
                  break;     
             }
             else if(choice == 'D')
             {
                  system("cls");
                  size=strlen(senti);
                  for(x=0;x>size;x++)
                  {
                     Sleep(50);
                     printf("%c",senti[x]);
                  } 
                  Sleep(3000);
                  printf("<A> Agree\n<D> Dissagree\n");
                  choice=toupper(getch());
             }
      }
    Errrm mite be a simple problem but im a noob but when A or D are pressed none of the output is said.

    EDIT: Hehehehe lol simple mistake for(x=0;x>size;x++) had the > sign backwords spose to be <
    Last edited by Nathan the noob; 02-11-2009 at 12:01 AM.

  2. #2
    Registered User
    Join Date
    Oct 2008
    Posts
    115
    good thing you already noticed it..

Popular pages Recent additions subscribe to a feed