Find the sum or total of count

Hello,

Is there any way in which I can find the sum or the total of two count variables?

E.g. I want to be able to use the COUNT, and add them together to give me a total, but I am not sure how to do that. I tired using the addition method, but it doesn't work.

Thank you for your time.

Re: Find the sum or total of count

Quote:

add them together to give me a total

Code :

total = count1 + count2; // add them together

This seems a very simple problem. Can you explain what problem you are having doing this?

Please explain what " it doesn't work" means?

Re: Find the sum or total of count

I been using three different methods for each of the "counts" It works now, as I put everything in one method.

Thank you :)