I'm not going to post the code on this one just incase it's a little confusing. But here's the jist:
I have a couple of nested loops with multiple (var)++'s inside as counters. Each counter resets itself after reaching 25 and the total of the counters much equal 120 in order to print (No this is not a brute force cracker). Each (var)++ has a value associated with it that I have loaded as float variables.
float valueA1 = 12.2
float valueA2 = 11.5
float valueA3 = 14.9
float valueA4 = 17.9
a++ reaches 3
cout << valueA(value of a) <<< this would be seen as valueA3
the print out desired would be 14.9
I apologize if this has been touched on and missed it in a search. I'm an old-timer trying to pick back up in the trade. Any constructive comment would be appreciated, even if it doesn't solve the issue.