CPPForSchool.com: String Set 1 Assignment 5
5.
Write a program to compare two strings they are exact equal or not.
Strings are quite interesting to me because they are essentially just arrays with characters instead of numbers. Nevertheless, I utilized the code from prior exercises along with creating an if/else condition to determine whether if the values in both character strings are the same. Below is my source code and output. For comparison, I have also included the sample source and output.
Strings are quite interesting to me because they are essentially just arrays with characters instead of numbers. Nevertheless, I utilized the code from prior exercises along with creating an if/else condition to determine whether if the values in both character strings are the same. Below is my source code and output. For comparison, I have also included the sample source and output.
Comments
Post a Comment