int main (void) { rand_no(); int i,j,k; for(i = 0; i < 20; i++){ if( i == 10){ printf("ni ge da ben dan hahaha"); return 0; } printf("Please input the 4 NO. you guess:\n"); scanf("%s",gue); k = right_or_n(); if( k == 1 ){ continue; } y_or_n(); if(x == 0 && y == 0) printf("No num. is here"); if(x == 4){ printf("You done!\n"); break; } else{ for (j = 0; j < x; j++) printf("A"); for(j = 0; j < y; j++) printf("B"); printf("\n"); } } return 0; }
/* Check a list for files that require preconversion */ void check_list(char *home, Package *pkg) { char cmd[FILENAME_MAX]; char name[FILENAME_MAX]; char *where = home; PackingList p = pkg->head; while (p) { if (p->type == PLIST_CWD) where = p->name; else if (p->type == PLIST_IGNORE) p = p->next; else if (p->type == PLIST_FILE) { cmd[0] = '\0'; sprintf(name, "%s/%s", where, p->name); /* gzip? */ if ((suffix(name, "gz") || suffix(name, "z")) && y_or_n(TRUE, QUERY_GZIP, name)) sprintf(cmd, UNZIP, name); /* Compress? */ else if (suffix(name, "Z") && y_or_n(TRUE, QUERY_COMPRESS, name)) sprintf(cmd, UNCOMPRESS, name); if (*cmd) { if (Verbose) printf("Uncompressing-> %s\n", cmd); if (system(cmd)) barf("%s failed!", cmd); nuke_suffix(p->name); } } p = p->next; } }