How do you count charcters in C++? for example if the user inputs 1234 the output would be 4 and -1234 the output would be 5. also if a user enters a numbers until a 0 is entered it outputs the nunmber of positive numbers entered and the number of negative numbers entered. i know how to terminate the lop i'm not sure how to count the number of positive numbers and then the number of negative numbers entered. Any help on this would greatly be appreciated, i might be looking to much in to it, it's always the case lol. Thanks a bunch.

Post what you've got -- and please enclose code within code tags