The following code:
int size = str1.size () - i; if (size <= 0) { str2 = 0; }
When changed to this:
if (str1.size () -