Instead of trying to explain what I am attempting to do I'll just post the code:
Code:
int main() {
char answer [50];
char ans1;
printf("Work out?\n");
scanf("%s", answer);
if (answer=='Pressure') {
printf("worked");
}
else {
printf("nope");
}
As you would know that is a big bowl of fail :P been trolling around the internet trying to find out how to go about if statements and strings and cant find anything (apart from with c++ and that just confuses me even more).
Would be grateful if anyone could spare some in-sight