Hi everyone.
Actually I'm still new in c++ programming.
I want to create a program so that when a person input "122555abc", the output will be :
Digits Occurrence
1 1
2 2
5 3
Did anyone can help me?
Please...
Hi everyone.
Actually I'm still new in c++ programming.
I want to create a program so that when a person input "122555abc", the output will be :
Digits Occurrence
1 1
2 2
5 3
Did anyone can help me?
Please...
Well show your atempt so far
Thought for the day:FLTK: "The most fun you can have with your clothes on.""Are you sure your sanity chip is fully screwed in sir?" (Kryten)
Stroustrup:
"If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"
Well here is the code to display the numbers in a string without any chars.
This is only a start and is showing you how to loop through the string to search for digits.Code:for (i = 0; i < message.length(); i++) if(isdigit(message.at(i))) cout << message[i] << endl;