What's with all the [*]s??? Stop trying to be cute.
Set nums = 0 in the function, not as a global. Keep your values where you need them.

It helps to explain what the problem is, not just tell us there is one. We do't know your program, data file, nor task. Without details we're only guessing -- like I did above.

[*] i did them by mistake and i deleted them that if u noticed ??

i deleted nums=0 from global
and i declared it again indise the function
and it was ok


thank you for helping

now i wil try to do the rest

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.