How can I write a program code so that it allows case-insensitive comparison of two strings?
For example: "Hi" =="hi"
those two strings are the same and will return true .
I am not familiar with using string::compare() so could you help me?
String Manipulation, loopingcode help needed
Page 1 of 1
3 Replies - 623 Views - Last Post: 04 May 2007 - 07:22 PM
Replies To: String Manipulation, looping
#2
Re: String Manipulation, looping
Posted 02 May 2007 - 09:46 AM
The .compare() method does not have a case insensitive option...you can convert both strings to one case or the other for case insensitivity - check out the following article.
http://www.informit....p...um=194&rl=1
http://www.informit....p...um=194&rl=1
#3
Re: String Manipulation, looping
Posted 02 May 2007 - 01:12 PM
Amadeus, on 2 May, 2007 - 09:46 AM, said:
The .compare() method does not have a case insensitive option...you can convert both strings to one case or the other for case insensitivity - check out the following article.
http://www.informit....p...um=194&rl=1
http://www.informit....p...um=194&rl=1
thank you for your help
I will try to write a code myself and ask for help if i need it
#4
Re: String Manipulation, looping
Posted 04 May 2007 - 07:22 PM
no more help needed
This post has been edited by eugene1017: 04 May 2007 - 07:48 PM
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|