I'm new to c++ and I'm making my first project with it. I have an array with some strings in it and I need my code to check if an input is in that array, store it and continue with the code but I don't know how.
Code:
#include <iostream>
using namespace std;
int battleCapacity;
string T1P1;
string pokemonlist[] = {"Bulbasaur", "Charmander", "Squirtle", "Pikachu"};
int main() {
    cout << "Pokemon Battle Buddy\nHP and Damage Calculator\nBattle Capacity: ";
    cin >> battleCapacity;
    if (battleCapacity <= 6) {
        cout << "Trainer 1; Pokemon 1: ";
        cin >> T1P1;
    } else {
        cout << "Not Working";
    }
}
I know in Python it is
if x in y:
    return
I'm looking for something similar to this. Thanks
 
     
     
     
    