![]() |
String manipulation Problem
can someone solve my problem
if the string is college the output must be c=1 o=1 l=2 e=2 g=1 it counts that how many a letter does it used thnk you ^^:) |
Re: String manipulation Problem
I'd probably use an array of 26 ints initialised to zero, then for each letter encountered increment the relevant element. Pseudocode:
Code:
int arr[26] initialise to zero |
| All times are GMT +5.5. The time now is 02:55. |