std::strings are much easier to work with than char arrays for beginners. I’d suggest you use them unless there is a reason not to.
There are many issues with the code. See if you can get less code working first. How about one function that you call from main, passing in stings and char array pointers so you can get that skill down.