wes d2a2ba9e15 first commit | 4 years ago | |
---|---|---|
.. | ||
README.md | 4 years ago | |
code.cpp | 4 years ago | |
unitTest.cpp | 4 years ago |
by Helen Yu tags: strings, conditions, validation
Create a function that takes two strings as arguments and return either true or false depending on whether the total number of characters in the first string is equal to the total number of characters in the second string. Examples comp("AB", "CD") ➞ true comp("ABC", "DE") ➞ false comp("hello", "edabit") ➞ false Notes Don't forget to return the result. If
Create a function that takes two strings as arguments and return either true
or false
depending on whether the total number of characters in the first string is equal to the total number of characters in the second string.
comp("AB", "CD") ➞ true
comp("ABC", "DE") ➞ false
comp("hello", "edabit") ➞ false
return
the result.