Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3042

Difference between two string.

$
0
0
I want to compare two string, and want to see differeince in int form. For example,


Code:

string first_string="0002AE1";
string second_string="0002AE2";

How can i calculate difference between two string? It is obvious difference between above two string is 1/-1, but difference would be 1.

Viewing all articles
Browse latest Browse all 3042

Trending Articles