Sorry for the confusing title but here's what I want to do:
Why doesn't this work?Code:#include <iostream> using namespace std; int main() { char search[50]; cout<<"Welcome to Google! What are you looking for?\n\n"; cin>>search; if (search == test ) { cout<<"Good"; cin.ignore(); } if (search != test) { cin.ignore(); cout<<"\nSorry! " <<search <<" wasn't found!\n\n"; system("pause"); } }