I made a simple program to compare two string values using If statement, in functions, Please any1 guide me or sort it out for me that when the program ask the user to enter the input e.g Enter first Name and then Enter second name, so if i give both names in lower case so they match and the result is true , but when i give the same names as input but one input/name in upper case and the other in lower case, then it says names didn,t matched, so whats the method that the compiler dont care about whether I entered lower case or upper case letter,.. And when I enter junaid as a first input and then JUNAID as second input so it displayed that Names Matched...
Below is the code
Remember uppercase and lowercase matter when checking if two strings are equal or not.
One way you could go about it turn whatever the user enters into all lowercase with tolower() http://www.cplusplus.com/reference/cctype/tolower/?kw=tolower that way you don't have to worry about if they enter any upcase letters.
Just iterate through each string and turn all upcase letters to lowercase letters.
I'm sorry but we aren't your employees and we won't just give you the code solution for your problems. I have no problem helping people that show they want to learn and do things their selves, but I do have a problem helping people that show no effort and want others to do their work for them.
I gave you the resources you need so a take a few minutes to get familiar with them.
If you have any questions I would be more then happen to help walk you through anything you don't understand but I won't as you say "Read your problem above and give you the solution".