Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This function prints out the appropriate characters for the guess
- void printout()
- {
- int x=0, i=0, found=0;
- for(i=0; i<strlen(lower_title); ++i)
- {
- if(lower_title[i]=='\0' && lower_title[i]=='\n' && lower_title[i]==' ')
- {
- found=1;
- }
- else if(lower_title[i]==' ')
- {
- printf(" ");
- }
- else
- {
- while(x=0 && x<sizeof used_char)
- {
- if(lower_title[i]==used_char[x])
- {
- found = 1;
- printf("%c", used_char[x]);
- x = 1000;
- }//end if
- ++x;
- }//end while
- if(found==0)
- {
- printf("*");
- }
- }//and for
- }
- printf("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement