I'm totally new to programming.
I just want to type in Dave, then it should show "have a nice day"
So I write it in this way:
{
char str[100];
printf("\nwhat is your name?\n");
scanf("%s",str);
if (str="Dave")
{
printf("\nhave a nice day\n");
}
}
Eventually, it shows nothing. What's wrong with it?