A simple game which we have all played once in their life,Actually according to the program the user has to give the movie name and then he has to find it which sounds silly. i could not come up with any better solution for this , so if you have any better solution please do comment . works better with two players .one has to provide the movie name as input and the other can find the movie name.
code:
#include<stdio.h>
#include<string.h>
#include<conio.h>
int checkflag(int size,char str[size])
{
for(int i=0;str[i]!='\0';i++)
{
if(str[i]=='_')
{
return 1;
}
}
return 0;
}
int checkkolly(int size,char str[size])
{
for(int i=0;str[i]!='\0';i++)
{
if(str[i]!='*')
{
return 1;
}
}
return 0;
}
int main()
{
char movie_name[100];
printf("\n Enter the movie name(player 1)\n");
scanf(" %[^\n]s",movie_name);
c…
Comments
Post a Comment