[Solved] looping through a character array c++ [closed]
you read only amount of characters that size variable specify, since then , Why custNum function would not return true for anything longer than size variable ? , Because it’s not checking anything more than what size variable specify. Below is the code you need #include <iostream> #include <string> using namespace std; bool custNum(string,unsigned int); … Read more