Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Can anyone teach me how to make a counter?
not i timer, but a counter,, which calculate how many cycle of certain function have been done..
Posted

1 solution

Give us more information, meanwhile:
C++
int iCounter = 0;

// Do something
iCounter++;  // each time you cill call that iCounter will be incremented.

// Do something else
iCounter++;  // each time you cill call that iCounter will be incremented.

...

I guess you are not interested in this answer, but is the best I can imagine from your question.

Rewrite your question, add more details and then probably you'll get a proper answer...
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 2-Oct-12 21:41pm    
This is a good response, a 5.
But, with equal success, you could have answered that the question is off-topics, because this forum is for software developers. Meaning, not for OP :-)
--SA
Joan M 3-Oct-12 3:24am    
:D
Thank you Sergey!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900