Ok im new at this and trying to learn but im having problems trying to write an or function for cin. Heres what im trying to do but the or function doesnt work. It will run but it always comes up false.
I Hope someone can help me out. if you have any ideas or think you can help let me know.Code:cin.getline ( resp1, 50 ); if ( strcmp ( resp1, "answer1 || answer2") == 0) cout<<"Outputted text"<<"\n"; else cout<<"outputted text"<<"\n";