Hi guys,i 've started learn c++ 1 week ago,i need an advice about how i can check entered word without function check_pass.How can i use if or while function for it please help.(Sorry for some mistakes )
Code:#include "stdafx.h" #include <iostream> #include <cstdlib> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int enter_word; cout<<"Hey bro what is your favourite color? "; cin>>enter_word; cout<<"So what is my favourite color? "; if (enter_word"yellow"){ cout<<"Yep you are right bro!";} system("pause"); return 0; }