Apr 18, 2017 at 12:05am
Your code engenders undefined behavior. number1
and number2
are empty. You cannot access elements of those strings that are not there.
Apr 18, 2017 at 12:22am
What exactly are you trying to accomplish? Repeatedly storing different values in the same strings doesn't seem like it would be particularly useful.
Apr 18, 2017 at 12:27am
I am using it to troubleshoot a small aspect of a larger and more useful program.