Saturday, May 22, 2010

How can I write c++ code to dislplay number of digits if I give a number?

put the int into a string var.


get the sizeof the string var.


remember.... the size of string is one plus the exact size ;)


No comments:

Post a Comment