DaniWeb Forum Index
>
Search Forums
RSS
Search Results
•
•
•
•
Showing results 1 to 1 of 1
Search took
0.01
seconds.
Search:
Posts Made By:
campkev
; Forum:
C++
and child forums
Save these search results for 24 hours
Forum:
C++
Feb 8th, 2006
Replies:
4
Solved:
Counting the amount of numbers in one integer?
Views:
5,870
Posted By
campkev
Re: Counting the amount of numbers in one integer?
to find the number of digits in int x
if (x < 0)
x = -x;
int count = 1;
x = x/10;
while( x > 0)
{
count++;
x = x/10;
Showing results 1 to 1 of 1
You need to
join our community
in order to build your list of favorite forums. You can visit the
forum index
for a listing of all forums.
Latest Posts
Today's Posts
All Forums
Unanswered Threads
All Forums
Related Forum Features
DaniWeb News Stories
DaniWeb Code Snippets
DaniWeb Tutorials
DaniWeb Product Reviews
DaniWeb White Papers
Forum Search
About Us
|
Contact Us
|
Advertise
|
DaniWeb
|
Acceptable Use Policy
|
©2003 - 2009 DaniWeb® LLC