Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void must_see_movie(char movies [][100],char movies_info[9][10],unsigned int num [3])
- {
- int rank[10] = {0};
- int i,j,h;
- char * cretrion , * p = &movies[0][0],* check;
- for(i=0;(*p >= 0 && *p <= 127);i++)
- {
- p = &movies[i][0];
- for(h=0;h<3;h++)
- {
- cretrion = &movies_info[num[h]][0];
- check = strstr(*p,*cretrion);
- if(check != NULL)
- rank[i]++;
- }
- }
- for(j=0;j<=i;j++)
- printf("%d",rank[j]);
- }
Add Comment
Please, Sign In to add comment