LANGUAGE C++ Write a function that allows case- in sensitive comparison of two s
ID: 3673722 • Letter: L
Question
LANGUAGE C++
Write a function that allows case-insensitive comparison of two strings. The strings should not be altered at all. The return value should be analogous to that fromstrcmp:
(These return values can be short integers.)
Just remember that the comparisons are to be done in a manner that ignores the caseof the letters in the strings!
Place your new function in a library (strextra?) and call it something useful (strcmp_ncase?).
Write a driver program to test your function.
Add two defaulted arguments to your function which will allow the caller to request that you skip spaces and/or skip punctuation when doing the comparison.
Have numbers sorted properly even when they aren't justified with leading 0's:
Instead of:
Have numbers sorted properly even if they aren't in the lead of the string:
Instead of:
Explanation / Answer
I think this below implementation of C++ function will help you solve the above given string ..
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.