how can i display the number of variables or character that the user input?
parse the string

if it is a number, length of the number is log10 (num) + 1
You could use the length() or sizeof() functions.
do not use sizeof to determine string length. That's not what it does.
Give an example of what you would like counted for a more specific answer.
Topic archived. No new replies allowed.