Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

How to compare strings

$
0
0
My question is.. How can I compare two strings?
It's for the game: FLAMES

For example:
txt1.Text = "Sophia"
txt2.Text = "Patricia"

I want to count how many the same letters do these two strings have.

The output should be:
3 - pia
5 - pia

total - 8

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>