Count Digits From The String....
-
Is there any way to count digits from the string? Thanks in Advance..
The secret of life is not enjoyment but education through experience. - Swami Vivekananda.
-
Is there any way to count digits from the string? Thanks in Advance..
The secret of life is not enjoyment but education through experience. - Swami Vivekananda.
Mahesh KulkarniIs there any way to count digits from the string?
What exactly do you mean by this? Are you wanting the length of the string, or the actual count of numeric digits (0-9) within the string?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Is there any way to count digits from the string? Thanks in Advance..
The secret of life is not enjoyment but education through experience. - Swami Vivekananda.
yes, but there is no direct way. How, in pseudocode, would you do it ? if you can do it, then translating it to C/C++ would be simple.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
yes, but there is no direct way. How, in pseudocode, would you do it ? if you can do it, then translating it to C/C++ would be simple.
Maximilien Lincourt Your Head A Splode - Strong Bad
Maximilien wrote:
yes, but there is no direct way.
Yes this is right... I got the solution.. U need to check the each and every charatcter to get the total number of digits in the string. Thanks for ur HELP...
The secret of life is not enjoyment but education through experience. - Swami Vivekananda.
-
Is there any way to count digits from the string? Thanks in Advance..
The secret of life is not enjoyment but education through experience. - Swami Vivekananda.
a simple for() loop can accomplish this by counting from variable[0] - variable[?], waiting until you find the '/0' character.
I win because I have the most fun in life...
-
Is there any way to count digits from the string? Thanks in Advance..
The secret of life is not enjoyment but education through experience. - Swami Vivekananda.
use std::count_if() refer the msdn for more infos on that algorithm...
Don't know where to start ?
Refer the Forums Guidelines and ask a friend