When i run this program, the only thing that happens is it constantly says: You get a lolli-pop! yay!....What am i doing wrong, i tried changing the if (good=="bad") to 0 or 1, but 1 wouldnt work.......it says its forbidden, plz help
#include <iostream.h>
#include <stdlib.h>
int main(void)
{
char good[5];
cout<<"Please State you intentions, good or bad: ";
cin.getline(good, 5, '\n');
if (good=="bad")
{ cout<<"You get spanked!"<<endl;
system("PAUSE");
}
else if(good=="good")
system("PAUSE");
{ cout<<"You get a lolli-pop! yay!"<<endl;
}
system("PAUSE");
return 0;
}