Completely new to C++, but not to programming. Decided to lookup if iterating over a string had any good practices and found this https://www.geeksforgeeks.org/iterate-over-characters-of-a-string-in-c/
GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
