Новый участник
Сообщения: 43
Благодарности: 0
|
Профиль
|
Отправить PM
| Цитировать
Write a program that uses your function to calculate how many times given letter meets in the given sequence.
Use С-style string as array of chars.
The length of the string is not more than 20 symbols.
You have to perform developed function N times.
Input
First line contains N(1<=N<=100). Then N lines are given in the following format : "one char" a space and that char array.
Output
N lines in the following format:
< number of occurrence > < character itself > in < given string >
|
Отправлено: 11:15, 16-10-2010
| #3
|