CPPForSchool.com: String Set 1 Assignment 2
2.
Write a program to display string from backward.
This assignment was built upon the prior task of counting characters in a string. From there, I had to utilize the algorithm provided within the tutorials. Nevertheless, I am extremely happy with the outcome. It works! Ultimately, the program firsts determines the length of the string array, followed by printing the array counting from right to left. This was accomplished by subtracting one from the length with each pass.
This assignment was built upon the prior task of counting characters in a string. From there, I had to utilize the algorithm provided within the tutorials. Nevertheless, I am extremely happy with the outcome. It works! Ultimately, the program firsts determines the length of the string array, followed by printing the array counting from right to left. This was accomplished by subtracting one from the length with each pass.
Comments
Post a Comment