I have a game save code thing, and every time it decodes the game save code the int is doubled anybody know why?
cout << "This has been removed" << endl;
175:5:5:5:0:0:25:50:1:1:10000
175 stands for gold, but when it runs through the program it becomes 175175. 5 becomes 55, 25 becomes 2525, 5050, it goes on and on, except the 10000 those are just True or false statements (ints set to 1 or 0). sgold is doubling which is set to the integer. So 175 is inputed but it doubles it somehow to 175175 and then that is converted to the integer gold