Hey everyone,
Does anyone know how to sum groups in C++? I need to find the group with the highest amount. I can find the max when it comes to finding a set of individual numbers but now when a group is required. For Ex:
[TABLE="width: 128"]
[TR]
[TD="width: 64"]Group A[/TD]
[TD="width: 64, align: right"]64[/TD]
[/TR]
[TR]
[TD]Group A[/TD]
[TD="align: right"]48[/TD]
[/TR]
[TR]
[TD]Group A[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]Group B[/TD]
[TD="align: right"]49[/TD]
[/TR]
[TR]
[TD]Group B[/TD]
[TD="align: right"]36[/TD]
[/TR]
[TR]
[TD]Group C[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]Group C[/TD]
[TD="align: right"]75[/TD]
[/TR]
[TR]
[TD]Group C[/TD]
[TD="align: right"]87[/TD]
[/TR]
[TR]
[TD]Group C[/TD]
[TD="align: right"]72[/TD]
[/TR]
[/TABLE]
The group with the highest amount is GROUP C
Thanks
Does anyone know how to sum groups in C++? I need to find the group with the highest amount. I can find the max when it comes to finding a set of individual numbers but now when a group is required. For Ex:
[TABLE="width: 128"]
[TR]
[TD="width: 64"]Group A[/TD]
[TD="width: 64, align: right"]64[/TD]
[/TR]
[TR]
[TD]Group A[/TD]
[TD="align: right"]48[/TD]
[/TR]
[TR]
[TD]Group A[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]Group B[/TD]
[TD="align: right"]49[/TD]
[/TR]
[TR]
[TD]Group B[/TD]
[TD="align: right"]36[/TD]
[/TR]
[TR]
[TD]Group C[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]Group C[/TD]
[TD="align: right"]75[/TD]
[/TR]
[TR]
[TD]Group C[/TD]
[TD="align: right"]87[/TD]
[/TR]
[TR]
[TD]Group C[/TD]
[TD="align: right"]72[/TD]
[/TR]
[/TABLE]
The group with the highest amount is GROUP C
Thanks