How Would i Get It To Lets SAy
check is the result of seeing wat is typed after the "take" input is typedCode:while(game == 1) { cin >> input; if(input == "use") { if(check == "torch") { Code here } else { code here } } if(input == "take") { if(check == "barrel") { Code here } else if(check == "cheese") { code here } else { code here } } }
so if the user types take barrel how would i get the program to find out they typed barrel after it
How would i get it to check wat they typed after the take?