- void input(int *n, char a[]) - repeat input array of letter until entering a digit
2.void display(char a[], int n) - display
3. int find(char a[], char c, int n) - find c in a, return the index of c if found, otherwise return -1
4.void replace(char a[], char f, char c, int n) - replace f by c in a
5. void reverse(char a[], n) - reverse all element of a
6. int main() to show the result of above functions
7. Kết quả
File C:Find
No comments:
Post a Comment