I'm extremely new to visual c++ and I have a calculation assigned to a data type long that I copied to a string in hopes of cutting the first index if the value gets more than 6 digits long.
The max the value can get is 7 digits long so if that ever occurs, I would like to cut the first number of the string
Example: 1532939 -> 532939
I've been looking all around and I cannot seem to cut a string. Is there any way to cut a string based on the index like in vb?
(_ltoa(total,total2, 10)); if (strlen(total2) > 6) { }