Re: String compare
- From: Martin Bonner <martinfrompi@xxxxxxxxxxx>
- Date: Wed, 12 Mar 2008 09:43:28 -0700 (PDT)
On Mar 12, 4:20 pm, Muhs <shumy...@xxxxxxxxx> wrote:
Hi !!
i want to compare two strings and return the difference
For example, i have two strings,
string str1="then";
string str2="than";
it compared the two strings and returns 1, as only one character is
different (a and e).
Is there a function in c# that can do this??
I don't think so.
This is quite easy, so I suspect it is homework. You won't learn if
you get somebody else to write the code for you. If you have written
some code and are having trouble, then post it with a description of
the problem and we can probably help.
If it is not homework, then what is the application? (I can think of
a number of issues with the specification as it stands, and the
resolution will depend on the application.)
.
- Follow-Ups:
- Re: String compare
- From: Muhs
- Re: String compare
- From: Muhs
- Re: String compare
- From: Muhs
- Re: String compare
- References:
- String compare
- From: Muhs
- String compare
- Prev by Date: Re: cast of arrays with a given type
- Next by Date: SQL Statement In to SQL
- Previous by thread: Re: String compare
- Next by thread: Re: String compare
- Index(es):
Relevant Pages
|