Write a function that receives a string of characters as its input, and check if it is symmetric to a dollar sign. You may use following function header: bool isInLanguage_1(string aString) 2. Write a function that receives a string of characters and return true if the string is in language, otherwise it returns false. You may use following function header (Assume a string is in language if it is read from the left side is the same as it is read from the right side. For example, a-b-d-c is not in the language, a-b-c-a-c-b-a is in language): bool isInLanguage_2(string aString
1. Write a function that receives a string of characters as its input, and check if it is symmetric to a dollar sign. You may use following function header:
bool isInLanguage_1(string aString)
2. Write a function that receives a string of characters and return true if the string is in language, otherwise it returns false. You may use following function header (Assume a string is in language if it is read from the left side is the same as it is read from the right side. For example, a-b-d-c is not in the language, a-b-c-a-c-b-a is in language):
bool isInLanguage_2(string aString)
I tried using a while loop, but for some reason, I am not getting the output I was hoping for and would like you to check this out.
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 2 images