Simple way for an AI to follow a Player using C++

I’m trying to create an AI that will track the player (After adding other functions) in C ++. I have been able to detect the player, but I still can’t get him to move. You may know a very easy method to learn and implement. I prefer not to use blackboard, or maybe you can explain to me how to implement it more accurately. It would be ok if you could give me an example, but the explanation is ok too. Thank you for the help.