Hello all,
What is wrong with this code? I can't get Wow! to print if the user answers "truck."
Code:#include <iostream> using namespace std; main() { char veh[6]; cout << "Do you drive a car or a truck?" << "\n"; cin >> veh; if(veh == "truck") {cout << "Wow!" << "\n";} return 0; }