mirror of
https://bitbucket.org/Mattrixwv/my-classes.git
synced 2025-12-07 02:33:57 -05:00
Updated comments
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//myClasses/headers/mee/stringAlgorithms.hpp
|
||||
//Matthew Ellison
|
||||
// Created: 07-02-21
|
||||
//Modified: 07-02-21
|
||||
//Modified: 10-11-21
|
||||
//This file contains declarations of functions I have created to manipulate strings
|
||||
/*
|
||||
Copyright (C) 2021 Matthew Ellison
|
||||
@@ -112,6 +112,11 @@ bool isPalindrome(std::string str){
|
||||
|
||||
//This function returns true if the string passed to it is a pandigital
|
||||
bool isPandigital(std::string str, char bottom, char top){
|
||||
//Return false if top < bottom
|
||||
if(top < bottom){
|
||||
return false;
|
||||
}
|
||||
|
||||
//Return false if the wrong number of characters are in the string
|
||||
if(str.size() != (top - bottom + 1)){
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user