What is wrong with these two snippets of code, they both return false no matter what???
Code:bool LM(string Name) { string Control = Name.substr(5); if(Control == "aName") { return true; } return false; }Code:bool REALLY(string String, int Lenght) { // ASCII "x". char Symbol = 120; // Go through the string. for(int counter = 0; counter > Lenght; counter++) { // Check if the location pointed to equals "x". if(String[counter] == Symbol) { return true; } } return false; }