Hi,
I want to create a program which can count a function as many times it runs. eg. if i sold some tickets then at the end of the day i have to count how many tickets i have sold.
Thanks
Hi,
I want to create a program which can count a function as many times it runs. eg. if i sold some tickets then at the end of the day i have to count how many tickets i have sold.
Thanks
Use a static variable and just increment it each time the method is called.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.